mirror of
https://github.com/grafana/grafana.git
synced 2025-09-26 00:54:25 +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.
|
// uPlot hook to draw the labels on the bar chart.
|
||||||
const draw = (u: uPlot) => {
|
const draw = (u: uPlot) => {
|
||||||
|
if (showValue === BarValueVisibility.Never) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
// pre-cache formatted labels
|
// pre-cache formatted labels
|
||||||
let texts = Array(barRects.length);
|
let texts = Array(barRects.length);
|
||||||
let labelOffset = LABEL_OFFSET_MAX;
|
let labelOffset = LABEL_OFFSET_MAX;
|
||||||
|
Reference in New Issue
Block a user