Browse Source

Fix TimelineChart time format issue (#1283)

mdluo 7 năm trước cách đây
mục cha
commit
c86c321c46
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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],
     };