mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
[explore] adding y_axis_bounds to force Y axis bounds (#2878)
* [explore] adding y_axis_bounds to force Y axis * Handling comments
This commit is contained in:
committed by
GitHub
parent
c5f2eafc90
commit
e300273e71
@@ -306,9 +306,12 @@ function nvd3Vis(slice, payload) {
|
||||
if ((vizType === 'line' || vizType === 'area') && fd.rich_tooltip) {
|
||||
chart.useInteractiveGuideline(true);
|
||||
}
|
||||
if (fd.y_axis_zero) {
|
||||
chart.forceY([0]);
|
||||
} else if (fd.y_log_scale) {
|
||||
if (chart.forceY &&
|
||||
fd.y_axis_bounds &&
|
||||
(fd.y_axis_bounds[0] !== null || fd.y_axis_bounds[1] !== null)) {
|
||||
chart.forceY(fd.y_axis_bounds);
|
||||
}
|
||||
if (fd.y_log_scale) {
|
||||
chart.yScale(d3.scale.log());
|
||||
}
|
||||
if (fd.x_log_scale) {
|
||||
|
||||
Reference in New Issue
Block a user