Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion gulp/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ module.exports = {
test: {
src: loc.src + '/js/**/*.js',
tests: loc.test,
unit: loc.test + '/unit_tests/**/*.js'
unit: loc.test + '/unit_tests/**/*.js',
demo: loc.test + '/index.html'
},
clean: {
dest: loc.dist
Expand Down
6 changes: 3 additions & 3 deletions gulp/tasks/watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ const gulp = require( 'gulp' );

gulp.task( 'watch:scripts', done => {
gulp.watch(
[ config.test.src, config.demoScripts.src ],
[ config.test.src, config.demoScripts.src, config.test.demo ],
gulp.series( 'scripts', 'test:unit' )
).on( 'change', browserSync.reload );
);
done();
} );

Expand Down Expand Up @@ -52,8 +52,8 @@ function browserSyncInit( done ) {
gulp.task( 'watch',
gulp.parallel(
'watch:scripts',
'watch:styles',
'watch:tests',
'watch:styles',
browserSyncInit
)
);
9 changes: 8 additions & 1 deletion src/js/charts/BarChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class BarChart {
rangeSelector: {
floating: true,
// The index of the button to appear pre-selected.
selected: 2,
selected: 3,
height: 35,
inputEnabled: false,
verticalAlign: 'bottom',
Expand Down Expand Up @@ -59,6 +59,10 @@ class BarChart {
type: 'year',
count: 5,
text: '5y'
},
{
type: 'all',
text: 'All'
}
]
},
Expand Down Expand Up @@ -132,6 +136,9 @@ class BarChart {
type: 'column',
data: data,
name: 'Year-over-year change (%)',
dataGrouping: {
groupPixelWidth: 5
},
tooltip: {
valueDecimals: 2
},
Expand Down
Loading