mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-21 18:00:13 +01:00
do not use ids for styles
This commit is contained in:
parent
1cc807d733
commit
9ea34a99ca
4 changed files with 10 additions and 7 deletions
|
|
@ -26,10 +26,10 @@ export class LineChart {
|
||||||
};
|
};
|
||||||
|
|
||||||
chart.addListener('rendered', zoomChart);
|
chart.addListener('rendered', zoomChart);
|
||||||
// zoomChart();
|
zoomChart();
|
||||||
//
|
|
||||||
// if (chart.zoomChart) {
|
if (chart.zoomChart) {
|
||||||
// chart.zoomChart();
|
chart.zoomChart();
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
<ba-am-chart baAmChartClass="hello-world" [baAmChartConfiguration]="chartData" (onChartReady)="initChart($event)"></ba-am-chart>
|
<ba-am-chart baAmChartClass="dashboard-line-chart" [baAmChartConfiguration]="chartData" (onChartReady)="initChart($event)"></ba-am-chart>
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#amchart {
|
.dashboard-line-chart {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 350px;
|
height: 350px;
|
||||||
margin-top: -20px;
|
margin-top: -20px;
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,9 @@ export class LineChartService {
|
||||||
theme: 'blur',
|
theme: 'blur',
|
||||||
marginTop: 15,
|
marginTop: 15,
|
||||||
marginRight: 15,
|
marginRight: 15,
|
||||||
|
responsive: {
|
||||||
|
"enabled": true
|
||||||
|
},
|
||||||
dataProvider: [
|
dataProvider: [
|
||||||
{ date: new Date(2012, 11), value: 0, value0: 0 },
|
{ date: new Date(2012, 11), value: 0, value0: 0 },
|
||||||
{ date: new Date(2013, 0), value: 15000, value0: 19000},
|
{ date: new Date(2013, 0), value: 15000, value0: 19000},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue