Skip to content
Snippets Groups Projects
Unverified Commit 486e3370 authored by Jesse Devaney's avatar Jesse Devaney Committed by GitHub
Browse files

hide "show_series_values" setting when "show_values" setting is disabled (#43785)

parent 1e50d9f3
No related branches found
No related tags found
No related merge requests found
......@@ -184,7 +184,7 @@ export function seriesSetting({
inline: true,
getHidden: (single, seriesSettings, { settings, series }) =>
series.length <= 1 || // no need to show series-level control if there's only one series
!Object.prototype.hasOwnProperty.call(settings, "graph.show_values") || // don't show it unless this chart has a global setting
!settings["graph.show_values"] || // don't show it unless this chart has a global setting
settings["stackable.stack_type"], // hide series controls if the chart is stacked
getDefault: (single, seriesSettings, { settings }) =>
getSeriesDefaultShowSeriesValues(settings),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment