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