Skip to content

Commit

Permalink
refactor: Update tracing component to set column definitions after da…
Browse files Browse the repository at this point in the history
…ta is loaded
  • Loading branch information
namdhevTW committed Aug 19, 2024
1 parent 34c47d0 commit 92fa7d9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 27 deletions.
30 changes: 6 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,9 @@
# PrvConMgmtPortal
#PrivacyReportPortalPoc
This is a Proof of concept for a privacy reporting web page developed in Angular 18.

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 16.0.3.
## Currently supported pages

## Development server
Currently this supports the following pages and functionalities for the roles - admin & service-owner:

Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files.

## Code scaffolding

Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.

## Build

Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.

## Running unit tests

Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Running end-to-end tests

Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
1. Dashboard page - Contains overall and processed metrics with filters
2. Tracing page - Contains the privacy data represented in a table with filters varying based on the role
10 changes: 7 additions & 3 deletions src/app/core/services/dashboard/dashboard.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -408,15 +408,19 @@ export class DashboardService {
},
},
grid: {
height: '80%',
height: '75%',
top: '20%',
bottom: 'center',
left: 'start',
left: '5%',
right: '5%',
containLabel: true,
},
xAxis: {
type: 'category',
data: Object.keys(currentStageCounts),
data: Object.keys(currentStageCounts).map(key => key.replace(/ /g, '\n')),
axisTick: {
alignWithLabel: true,
},
axisLabel: {
fontFamily: 'Roboto, "Helvetica Neue", Arial, sans-serif',
fontSize: 12,
Expand Down

0 comments on commit 92fa7d9

Please sign in to comment.