瀏覽代碼

Fix TimelineChart time format issue (#1283)

mdluo 7 年之前
父節點
當前提交
c86c321c46
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/components/Charts/TimelineChart/index.js

+ 2 - 2
src/components/Charts/TimelineChart/index.js

@@ -71,8 +71,8 @@ export default class TimelineChart extends React.Component {
 
     const timeScale = {
       type: 'time',
-      tickCount: 10,
-      mask: 'HH:MM',
+      tickInterval: 60 * 60 * 1000,
+      mask: 'HH:mm',
       range: [0, 1],
     };