Commit 99379403 authored by Almouhannad Hafez's avatar Almouhannad Hafez

Fix margin

parent dfa4d57a
......@@ -9,7 +9,7 @@ export class PieChartHelper {
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 data: any[] = [];
......@@ -29,11 +29,12 @@ export class PieChartHelper {
// Add year selector
this.selector = this.container.append('div')
.attr('id', 'pie-chart-selector')
.attr('class', 'text-center');
.attr('class', 'text-center mt-4');
this.selector.append('label')
.attr('for', 'yearSelector')
.attr('class', 'form-label')
.style('font-weight', 'bold')
.text('Select year:');
this.selector.append('select')
.attr('class', 'form-select text-center')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment