'graphLineColor.0': COLORS.blue[700],
'graphLineColor.1': COLORS.blue[500],
'graphLineColor.2': COLORS.blue[300],
- 'graphLineColor.3': COLORS.blue[800],
+ 'graphLineColor.3': COLORS.blue[700],
+ 'graphLineColor.4': COLORS.blue[500],
+ 'graphLineColor.5': COLORS.blue[300],
graphGridColor: COLORS.grey[50],
graphCursorLineColor: COLORS.blueGrey[400],
newCodeHighlight: COLORS.indigo[300],
import {
NumberValue,
ScaleLinear,
- ScalePoint,
- ScaleTime,
scaleLinear,
+ ScalePoint,
scalePoint,
+ ScaleTime,
scaleTime,
} from 'd3-scale';
import { area, curveBasis, line as d3Line } from 'd3-shape';
-import { ThemeProp, themeColor, withTheme } from 'design-system';
+import { themeColor, ThemeProp, withTheme } from 'design-system';
import { flatten, isEqual, sortBy, throttle, uniq } from 'lodash';
import * as React from 'react';
import { isDefined } from '../../helpers/types';
const { zoomSpeed = 1 } = this.props;
const { maxXRange, xScale } = this.state;
- event.preventDefault();
const parentBbox = event.currentTarget.getBoundingClientRect();
const mouseXPos = (event.pageX - parentBbox.left) / parentBbox.width;
const xRange = xScale.range();