mirror of
https://github.com/grafana/grafana.git
synced 2025-09-25 20:54:10 +08:00
check for bar value visibility never (#37122)
This commit is contained in:
@ -192,6 +192,9 @@ export function getConfig(opts: BarsOptions, theme: GrafanaTheme2) {
|
||||
|
||||
// uPlot hook to draw the labels on the bar chart.
|
||||
const draw = (u: uPlot) => {
|
||||
if (showValue === BarValueVisibility.Never) {
|
||||
return;
|
||||
}
|
||||
// pre-cache formatted labels
|
||||
let texts = Array(barRects.length);
|
||||
let labelOffset = LABEL_OFFSET_MAX;
|
||||
|
Reference in New Issue
Block a user