Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
D
DV-Project
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
almohanad.hafez
DV-Project
Commits
99379403
Commit
99379403
authored
Feb 14, 2025
by
Almouhannad Hafez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix margin
parent
dfa4d57a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
pie-chart-helper.ts
src/ts/charts-helpers/pie-chart-helper.ts
+3
-2
No files found.
src/ts/charts-helpers/pie-chart-helper.ts
View file @
99379403
...
@@ -9,7 +9,7 @@ export class PieChartHelper {
...
@@ -9,7 +9,7 @@ export class PieChartHelper {
private
selector
:
any
;
private
selector
:
any
;
private
config
:
ChartConfiguration
=
new
ChartConfiguration
(
`#
${
this
.
svgId
}
`
);
private
config
:
ChartConfiguration
=
new
ChartConfiguration
(
`#
${
this
.
svgId
}
`
,
{
width
:
400
,
height
:
408
}
);
private
chart
:
PieChart
;
private
chart
:
PieChart
;
private
data
:
any
[]
=
[];
private
data
:
any
[]
=
[];
...
@@ -29,11 +29,12 @@ export class PieChartHelper {
...
@@ -29,11 +29,12 @@ export class PieChartHelper {
// Add year selector
// Add year selector
this
.
selector
=
this
.
container
.
append
(
'div'
)
this
.
selector
=
this
.
container
.
append
(
'div'
)
.
attr
(
'id'
,
'pie-chart-selector'
)
.
attr
(
'id'
,
'pie-chart-selector'
)
.
attr
(
'class'
,
'text-center'
);
.
attr
(
'class'
,
'text-center
mt-4
'
);
this
.
selector
.
append
(
'label'
)
this
.
selector
.
append
(
'label'
)
.
attr
(
'for'
,
'yearSelector'
)
.
attr
(
'for'
,
'yearSelector'
)
.
attr
(
'class'
,
'form-label'
)
.
attr
(
'class'
,
'form-label'
)
.
style
(
'font-weight'
,
'bold'
)
.
text
(
'Select year:'
);
.
text
(
'Select year:'
);
this
.
selector
.
append
(
'select'
)
this
.
selector
.
append
(
'select'
)
.
attr
(
'class'
,
'form-select text-center'
)
.
attr
(
'class'
,
'form-select text-center'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment