mirror of
https://github.com/getredash/redash.git
synced 2025-12-25 01:03:20 -05:00
Fix: auto hide Plotly Modebar (#4930)
* Only set value for displayModeBar if we want to hide it * Update viz-lib/src/visualizations/chart/Renderer/PlotlyChart.jsx
This commit is contained in:
@@ -34,8 +34,11 @@ export default function PlotlyChart({ options, data }) {
|
||||
const plotlyOptions = {
|
||||
showLink: false,
|
||||
displaylogo: false,
|
||||
displayModeBar: !visualizationsSettings.hidePlotlyModeBar,
|
||||
};
|
||||
|
||||
if (visualizationsSettings.hidePlotlyModeBar) {
|
||||
plotlyOptions.displayModeBar = false;
|
||||
}
|
||||
|
||||
const chartData = getChartData(data.rows, options);
|
||||
const plotlyData = prepareData(chartData, options);
|
||||
|
||||
Reference in New Issue
Block a user