do not use ids for styles

This commit is contained in:
nixa 2016-05-06 13:34:20 +03:00
parent 1cc807d733
commit 9ea34a99ca
4 changed files with 10 additions and 7 deletions

View file

@ -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();
// } }
} }
} }

View file

@ -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>

View file

@ -1,4 +1,4 @@
#amchart { .dashboard-line-chart {
width: 100%; width: 100%;
height: 350px; height: 350px;
margin-top: -20px; margin-top: -20px;

View file

@ -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},