change reverse line chart zindex and remove decinmals from yaxis ticks

This commit is contained in:
David Levin 2018-10-12 09:08:57 -07:00
parent 96f2024305
commit 564e4cfd66
3 changed files with 3 additions and 3 deletions

View File

@ -280,7 +280,7 @@ D3Chart.defaultProps = {
width: 600,
xFormat: '%Y-%m-%d',
x2Format: '',
yFormat: '.3s',
yFormat: '.1s',
};
export default D3Chart;

View File

@ -358,7 +358,7 @@ Chart.defaultProps = {
tooltipFormat: '%B %d, %Y',
xFormat: '%d',
x2Format: '%b %Y',
yFormat: '$.3s',
yFormat: '$.1s',
layout: 'standard',
mode: 'item-comparison',
type: 'line',

View File

@ -489,7 +489,7 @@ export const drawLines = ( node, data, params ) => {
.append( 'g' )
.attr( 'class', 'lines' )
.selectAll( '.line-g' )
.data( params.lineData.filter( d => d.visible ) )
.data( params.lineData.filter( d => d.visible ).reverse() )
.enter()
.append( 'g' )
.attr( 'class', 'line-g' )