cfpb-chart-builder
Advanced tools
Comparing version 6.1.2 to 6.2.0
{ | ||
"name": "cfpb-chart-builder", | ||
"version": "6.1.2", | ||
"version": "6.2.0", | ||
"description": "Charts for the Consumer Financial Protection Bureau", | ||
@@ -5,0 +5,0 @@ "main": "src/js/index.js", |
@@ -18,2 +18,7 @@ import Highcharts from 'highcharts/highstock'; | ||
// Calculate the maximum range as the last data point minus 7 years. | ||
const today = new Date( data[data.length - 1][0] ); | ||
const past = new Date( today ).setFullYear( today.getFullYear() - 7 ); | ||
const maxRangeValue = today - past; | ||
const options = { | ||
@@ -34,3 +39,3 @@ chart: { | ||
// The index of the button to appear pre-selected. | ||
selected: 2, | ||
selected: 3, | ||
height: 35, | ||
@@ -65,2 +70,7 @@ inputEnabled: false, | ||
text: '5y' | ||
}, | ||
{ | ||
type: 'year', | ||
count: 7, | ||
text: '7y' | ||
} | ||
@@ -79,2 +89,7 @@ ] | ||
grouping: false | ||
}, | ||
series: { | ||
dataGrouping: { | ||
enabled: false | ||
} | ||
} | ||
@@ -94,2 +109,3 @@ }, | ||
tickLength: 5, | ||
maxRange: maxRangeValue, | ||
type: 'datetime', | ||
@@ -96,0 +112,0 @@ dateTimeLabelFormats: { |
@@ -82,4 +82,3 @@ import Highcharts from 'highcharts/highstock'; | ||
floating: true, | ||
// The index of the button to appear pre-selected. | ||
selected: 2, | ||
selected: 'all', | ||
height: 35, | ||
@@ -86,0 +85,0 @@ inputEnabled: false, |
@@ -32,4 +32,3 @@ import Highcharts from 'highcharts/highstock'; | ||
floating: true, | ||
// The index of the button to appear pre-selected. | ||
selected: 2, | ||
selected: 'all', | ||
height: 35, | ||
@@ -36,0 +35,0 @@ inputEnabled: false, |
@@ -81,5 +81,3 @@ const path = require( 'path' ); | ||
[ 'Windows 7', 'internet explorer', '11' ], | ||
[ 'Windows 7', 'firefox', '27' ], | ||
[ 'Windows 7', 'chrome', '' ], | ||
[ 'Linux', 'android', '' ] | ||
[ 'Windows 7', 'firefox', '27' ] | ||
], | ||
@@ -86,0 +84,0 @@ url: 'http://localhost:' + STATIC_SERVER_PORT + '/?ci_environment=' + NODE_ENV, |
4389367
41266