mirror of
https://github.com/grafana/grafana.git
synced 2024-11-24 09:50:29 -06:00
Bar gauge auto lcd cell count
This commit is contained in:
parent
707d188428
commit
714e03c162
@ -193,7 +193,7 @@ export class BarGauge extends PureComponent<Props> {
|
||||
const valueRange = maxValue - minValue;
|
||||
const maxSize = this.size * BAR_SIZE_RATIO;
|
||||
const cellSpacing = 5;
|
||||
const cellCount = 25;
|
||||
const cellCount = maxSize / 20;
|
||||
const cellSize = (maxSize - cellSpacing * cellCount) / cellCount;
|
||||
const colors = this.getValueColors();
|
||||
const valueStyles = this.getValueStyles(valueFormatted, colors.value, this.size - maxSize);
|
||||
|
Loading…
Reference in New Issue
Block a user