mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
fix percentage change viz (#2757)
This commit is contained in:
parent
38375be5c3
commit
d9bd3d6460
@ -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],
|
||||
],
|
||||
},
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user