Sfoglia il codice sorgente

fix:bug5267季节性图表utc设置

ldong 3 mesi fa
parent
commit
86e2f7b96f
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/components/chart.vue

+ 1 - 1
src/components/chart.vue

@@ -41,7 +41,7 @@ export default defineComponent({
 
       let themeOptions = setThemeOptions();
 
-      const new_options: any = { ...defaultOpts,...themeOptions, ...props.options };
+      const new_options: any = { ...defaultOpts,...themeOptions, ...props.options,time:{ useUTC:props.chartInfo?.ChartType==2?true:false } };
       console.log(new_options);
 
       //stock不支持线形图只支持时间图 画散点图用原始chart