mirror of
https://github.com/grafana/grafana.git
synced 2025-02-11 08:05:43 -06:00
parent
235c747472
commit
11662e18b3
@ -133,10 +133,8 @@ export function getConfig(opts: TimelineCoreOptions) {
|
||||
value: number | null,
|
||||
discrete: boolean
|
||||
) {
|
||||
// do not render super small boxes
|
||||
if (boxWidth < 1) {
|
||||
return;
|
||||
}
|
||||
// clamp width to allow small boxes to be rendered
|
||||
boxWidth = Math.max(1, boxWidth);
|
||||
|
||||
const valueColor = getValueColor(seriesIdx + 1, value);
|
||||
const fieldConfig = getFieldConfig(seriesIdx);
|
||||
|
Loading…
Reference in New Issue
Block a user