Skip to content

Commit

Permalink
fix percentage change viz (#2757)
Browse files Browse the repository at this point in the history
  • Loading branch information
yileic authored and mistercrunch committed May 13, 2017
1 parent 38375be commit d9bd3d6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions superset/assets/javascripts/explorev2/stores/visTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,12 @@ const visTypes = {
requiresTime: true,
controlPanelSections: [
sections.NVD3TimeSeries[0],
{
label: 'Chart Options',
controlSetRows: [
['x_axis_format', 'y_axis_format'],
],
},
sections.NVD3TimeSeries[1],
],
},
Expand Down
1 change: 1 addition & 0 deletions superset/assets/visualizations/nvd3_vis.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ function nvd3Vis(slice, payload) {
case 'compare':
chart = nv.models.cumulativeLineChart();
chart.xScale(d3.time.scale.utc());
chart.useInteractiveGuideline(true);
chart.xAxis
.showMaxMin(false)
.staggerLabels(true);
Expand Down

0 comments on commit d9bd3d6

Please sign in to comment.