gipong / grafana-groupedbarchart-panel

grouped bar chart panel plugin for grafana
71 stars 29 forks source link

bars rendering crookedly in grafana 7.3.1 #47

Open Zeekin opened 3 years ago

Zeekin commented 3 years ago

I've encountered an odd rendering issue; the bars stack correctly in the leftmost column, but after that are strangely crooked as per below screenshot.

Not sure if maybe this plugin is incompatible with our version of grafana or there is some quirk with the data source causing it or what might be the cause.

image

alexsanderp commented 3 years ago

I have a same problem!

alexsanderp commented 3 years ago

image

alexsanderp commented 3 years ago

@gipong help us?

BlackMoon2020 commented 2 years ago

Thanks to one of my colleague, please try to update /dist/ctrl. Js Working with Grafana 8.3.2

from

return _this4.chartType === 'bar chart' ? _this4.x1(d.name) + _this4.margin.left : _this4.margin.left; //_this4.x1(d.name) - _this4.x1.rangeBand() * i + _this4.margin.left;

to

return _this4.chartType === 'bar chart' ? _this4.x1(d.name) + _this4.margin.left : _this4.x1(d.name) - _this4.x1.rangeBand() * i + _this4.margin.left;