-
- Downloads
Static Viz Line/Area/Bar Should now respect set Y-axis min/max (#28240)
* Static Viz Line/Area/Bar Should now respect set Y-axis min/max The values for y-axis min and max are available to the static-viz js, it is just a matter of pulling them into the y domain calculations. This PR also adds a rendering test to the backend unit tests to confirm that the setting is respected through the render pipeline. * Make tests better by not re-rendering for every node lookup. Just render each hiccup tree once, and search that tree multiple times instead. Just straight up a better way to do this test! * Make variable names clearer so they don't get mistaken for fns
Showing
- frontend/src/metabase/static-viz/components/XYChart/XYChart.tsx 8 additions, 1 deletion...nd/src/metabase/static-viz/components/XYChart/XYChart.tsx
- frontend/src/metabase/static-viz/components/XYChart/utils/scales.ts 29 additions, 6 deletions...rc/metabase/static-viz/components/XYChart/utils/scales.ts
- test/metabase/pulse/render/body_test.clj 31 additions, 0 deletionstest/metabase/pulse/render/body_test.clj
Please register or sign in to comment