Added axis configuration to Line Chart

This commit is contained in:
Andrés Santibáñez
2020-10-25 00:55:08 -05:00
parent 09f8b354f7
commit 28fa9421ad

View File

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