Bläddra i källkod

Fix TimelineChart time format issue (#1283)

mdluo 7 år sedan
förälder
incheckning
c86c321c46
1 ändrade filer med 2 tillägg och 2 borttagningar
  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],
     };