Skip to content

Commit

Permalink
handle y2axis for y axis format
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickleotardif committed Nov 10, 2015
1 parent 6b13d78 commit 4233d34
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions panoramix/static/widgets/viz_nvd3.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ function viz_nvd3(data_attribute) {
}
if (viz.form_data.y_axis_format) {
chart.yAxis.tickFormat(d3.format(viz.form_data.y_axis_format));

if (chart.y2Axis != undefined) {
chart.y2Axis.tickFormat(d3.format(viz.form_data.y_axis_format));
}
}

chart.duration(0);
Expand Down

0 comments on commit 4233d34

Please sign in to comment.