Browse Source

Merge branch 'master' of http://8.136.199.33:3000/hongze/horz_chart_front

Karsa 3 years ago
parent
commit
6c8efd2a01
2 changed files with 6 additions and 5 deletions
  1. 4 3
      src/utils/chartOptions.ts
  2. 2 2
      src/utils/highcahrts-zh_CN.ts

+ 4 - 3
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,6 +88,7 @@ export const defaultOpts = {
       month: '%y/%m',
       year: '%y/%m',
     },
+    ordinal: false
   },
   //默认y轴配置 用于季节图
   yAxis: {

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

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