UI-31
This commit is contained in:
parent
36a242846a
commit
49505ba976
5
nv.d3.js
5
nv.d3.js
@ -1893,7 +1893,10 @@ nv.models.cumulativeLineChart = function() {
|
||||
|
||||
xAxis
|
||||
.scale(x)
|
||||
.ticks( availableWidth / 100 )
|
||||
//If the ticks cannot fit on the chart tastefully, put in subticks for the dates that don't show
|
||||
.tickSubdivide( (data[0].values.length > (availableWidth/50)) ? true : false )
|
||||
//Suggest how many ticks based on the chart width and D3 should listen (50 is the optimal number for MM/DD/YY dates)
|
||||
.ticks( Math.min(data[0].values.length,availableWidth/50) )
|
||||
.tickSize(-availableHeight, 0);
|
||||
|
||||
g.select('.nv-x.nv-axis')
|
||||
|
10
nv.d3.min.js
vendored
10
nv.d3.min.js
vendored
File diff suppressed because one or more lines are too long
@ -275,7 +275,10 @@ nv.models.cumulativeLineChart = function() {
|
||||
|
||||
xAxis
|
||||
.scale(x)
|
||||
.ticks( availableWidth / 100 )
|
||||
//If the ticks cannot fit on the chart tastefully, put in subticks for the dates that don't show
|
||||
.tickSubdivide( (data[0].values.length > (availableWidth/50)) ? true : false )
|
||||
//Suggest how many ticks based on the chart width and D3 should listen (50 is the optimal number for MM/DD/YY dates)
|
||||
.ticks( Math.min(data[0].values.length,availableWidth/50) )
|
||||
.tickSize(-availableHeight, 0);
|
||||
|
||||
g.select('.nv-x.nv-axis')
|
||||
|
Loading…
Reference in New Issue
Block a user