|
@@ -140,6 +140,9 @@ export default {
|
|
|
props: {
|
|
|
edblist: Array,
|
|
|
datedata: Array,
|
|
|
+ chartInfo: {
|
|
|
+ type: Object
|
|
|
+ },
|
|
|
initData: {
|
|
|
default: null
|
|
|
}
|
|
@@ -246,8 +249,10 @@ export default {
|
|
|
Color: ''
|
|
|
}
|
|
|
this.dateList.push(date_item)
|
|
|
+
|
|
|
+ let themeOpt = this.chartInfo.ChartThemeStyle ? JSON.parse(this.chartInfo.ChartThemeStyle) : null;
|
|
|
this.dateList.forEach((item,index) => {
|
|
|
- item.Color = item.Color || defaultOpts.colors[index];
|
|
|
+ item.Color = item.Color || (themeOpt&&themeOpt.colorsOptions[index]||defaultOpts.colors[index]);
|
|
|
})
|
|
|
}
|
|
|
this.cancelDialog()
|