line mouseover and out events with tooltip

This commit is contained in:
Robert Elliott 2018-07-04 21:48:33 +02:00
parent 01eea75a2a
commit ec3e433e24
2 changed files with 1942 additions and 1944 deletions

View File

@ -297,8 +297,9 @@ export const drawLines = ( node, data, params ) => {
.enter()
.append( 'circle' )
.attr( 'r', 3.5 )
.attr( 'fill', d => d3InterpolateViridis( colorScale( d.i ) ) )
.attr( 'stroke', '#fff' )
.attr( 'fill', '#fff' )
.attr( 'stroke', d => d3InterpolateViridis( colorScale( d.i ) ) )
.attr( 'stroke-width', 3 )
.attr( 'cx', d => xLineScale( new Date( d.date ) ) )
.attr( 'cy', d => yScale( d.value ) );
};

File diff suppressed because it is too large Load Diff