Sfoglia il codice sorgente

取消周度处理

Karsa 3 anni fa
parent
commit
4746d226c1
2 ha cambiato i file con 4 aggiunte e 5 eliminazioni
  1. 3 4
      src/utils/chartOptions.ts
  2. 1 1
      src/utils/highcahrts-zh_CN.ts

+ 3 - 4
src/utils/chartOptions.ts

@@ -5,9 +5,9 @@ export const defaultOpts = {
   chart: {
     spacing: [5, 8, 2, 8],
   },
-  // time: {
-  //   useUTC: false,
-  // },
+  time: {
+    useUTC: false,
+  },
   title: {
     text: '',
   },
@@ -88,7 +88,6 @@ export const defaultOpts = {
       month: '%y/%m',
       year: '%y/%m',
     },
-    ordinal: false
   },
   //默认y轴配置 用于季节图
   yAxis: {

+ 1 - 1
src/utils/highcahrts-zh_CN.ts

@@ -159,7 +159,7 @@ export default (H:any) => {
     global: {
       // 不使用 UTC时间
       // useUTC: false,
-      timezoneOffset: 16 * 60,
+      timezoneOffset: -8 * 60,
       canvasToolsURL:
         protocol + '//cdn.hcharts.cn/highcharts/modules/canvas-tools.js',
       VMLRadialGradientURL: