fix(demo): refactor js theme using

This commit is contained in:
KostyaDanovsky 2017-08-01 15:42:06 +03:00
parent 672615b710
commit b772882cd6
28 changed files with 561 additions and 492 deletions

View file

@ -16,14 +16,16 @@ export class EchartsBarAnimationComponent {
const data1 = [];
const data2 = [];
const echarts: any = config.variables.echarts;
this.options = {
backgroundColor: config.echartsBackgroundColor,
color: [config.echartsBarAnimationColor1, config.echartsBarAnimationColor2],
backgroundColor: echarts.bg,
color: [echarts.barAnimation.colors],
legend: {
data: ['bar', 'bar2'],
align: 'left',
textStyle: {
color: config.echartsBarAnimationLegendTextColor,
color: echarts.legendTextColor,
},
},
xAxis: {
@ -34,14 +36,14 @@ export class EchartsBarAnimationComponent {
},
axisLine: {
lineStyle: {
color: config.echartsBarAnimationXAxisLineColor,
color: echarts.xAxisLineColor,
},
},
},
yAxis: {
axisLine: {
lineStyle: {
color: config.echartsBarAnimationYAxisLineColor,
color: echarts.yAxisLineColor,
},
},
},