|
|
|
@ -72,7 +72,7 @@ export function getConfig(opts: BarsOptions, theme: GrafanaTheme2) { |
|
|
|
|
walkTwo(groupWidth, barWidth, sidx - 1, numGroups, barsPerGroup, xDim, null, (ix, x0, wid) => { |
|
|
|
|
let left = Math.round(xOff + (_dir === 1 ? x0 : xDim - x0 - wid)); |
|
|
|
|
let barWid = Math.round(wid); |
|
|
|
|
const canvas = u.root.querySelector<HTMLDivElement>('.u-over'); |
|
|
|
|
const canvas = u.over; |
|
|
|
|
const bbox = canvas?.getBoundingClientRect(); |
|
|
|
|
|
|
|
|
|
if (dataY[ix] != null) { |
|
|
|
@ -291,7 +291,7 @@ export function getConfig(opts: BarsOptions, theme: GrafanaTheme2) { |
|
|
|
|
barMark.style.background = 'rgba(255,255,255,0.4)'; |
|
|
|
|
|
|
|
|
|
const init = (u: uPlot) => { |
|
|
|
|
let over = u.root.querySelector('.u-over')! as HTMLElement; |
|
|
|
|
let over = u.over; |
|
|
|
|
over.style.overflow = 'hidden'; |
|
|
|
|
over.appendChild(barMark); |
|
|
|
|
}; |
|
|
|
|