interpolated-charts
Version:
Configurable d3 v4 charts with interpolation and missing data range
44 lines (43 loc) • 1.03 kB
JavaScript
export const mouseEventData = {
x: 100,
y: 100,
selectedDate: new Date('2015-01-01T00:00:00'),
data: [
{
date: new Date('2015-01-01T00:00:00'),
value: 5,
x: 101,
y: 101,
interpolatedX: 101.1,
interpolatedY: 101.1,
interpolatedDate: new Date('2015-01-01T00:00:01'),
interpolatedValue: 5.1,
name: 'Minsk',
color: 'darkblue'
},
{
date: new Date('2015-01-01T00:01:00'),
value: 6,
x: 111,
y: 111,
interpolatedX: 111.1,
interpolatedY: 111.1,
interpolatedDate: new Date('2015-01-01T00:01:01'),
interpolatedValue: 6.1,
name: 'Moscow',
color: '#F84'
},
{
date: new Date('2015-01-01T00:02:00'),
value: 7,
x: 121,
y: 121,
interpolatedX: 121.1,
interpolatedY: 121.1,
interpolatedDate: new Date('2015-01-01T00:02:01'),
interpolatedValue: 7.1,
name: 'St. Petersburg',
color: 'red'
}
]
}