Added axis configuration to Line Chart
This commit is contained in:
@@ -50,9 +50,7 @@
|
||||
enabled: false
|
||||
},
|
||||
|
||||
stroke: {
|
||||
curve: component.get('lineChartModel.stroke.curve') || 'straight',
|
||||
},
|
||||
stroke: component.get('lineChartModel.stroke') || {},
|
||||
|
||||
title: {
|
||||
text: component.get('lineChartModel.title'),
|
||||
@@ -60,9 +58,12 @@
|
||||
},
|
||||
|
||||
xaxis: {
|
||||
...component.get('lineChartModel.xAxis') || {},
|
||||
categories: component.get('lineChartModel.data').map(item => item.title),
|
||||
},
|
||||
|
||||
yaxis: component.get('lineChartModel.yAxis') || {},
|
||||
|
||||
annotations: {
|
||||
points: component.get('lineChartModel.markers').map(item => {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user