Browse Source

fix:bug5267季节性图表utc设置

ldong 3 months ago
parent
commit
86e2f7b96f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/chart.vue

+ 1 - 1
src/components/chart.vue

@@ -41,7 +41,7 @@ export default defineComponent({
 
 
       let themeOptions = setThemeOptions();
       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);
       console.log(new_options);
 
 
       //stock不支持线形图只支持时间图 画散点图用原始chart
       //stock不支持线形图只支持时间图 画散点图用原始chart