fix percentage change viz (#2757)

This commit is contained in:
yileic 2017-05-13 15:46:02 -07:00 committed by Maxime Beauchemin
parent 38375be5c3
commit d9bd3d6460
2 changed files with 7 additions and 0 deletions

View File

@ -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],
],
},

View File

@ -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);