Open mtojek opened 11 months ago
This is super interesting. I can't look at it this second but I'll try and debug tonight. My current hunch is there is an issue with detecting the chart *ranges; can you try manually specifying the Y range?
Thanks for the quick reply!
My current hunch is there is an issue with detecting the chart changes; can you try manually specifying the Y range?
With manually set range as chart.ContinuousRange
, the problem does not occur. This is really sus...
YAxis: chart.YAxis{
GridMajorStyle: chart.Style{
StrokeColor: drawing.ColorBlack,
StrokeWidth: 0.5,
},
GridMinorStyle: chart.Style{
StrokeColor: drawing.Color{R: 0, G: 0, B: 0, A: 100},
StrokeWidth: 0.25,
},
Range: &chart.ContinuousRange{
Min: 0,
Max: 30,
},
},
Hello there, I am trying to optimize draw speed of my chart by pre-computing SMASeries
(it seems like it re-computes a LOT) and I replaced my SMASeries
with TimeSeries
and pre-computed values but instead of a speed increase I got an infinite loop somewhere in the draw call. I do have ContinuousRange
on both primary and secondary axis, I even went so far as to clamp values inside averaging routine but it did not help. Were there any ideas or solutions to this issue? Debugging right now, will report any findings myself.
After some trickery I managed to find correct thread and it seems like it is doing this:
(paused at setCell
)
Any ideas what can cause it?
Hi @wcharczuk,
I'm facing some issues with rendering a chart series with flat lines.
I can see neverending 100% CPU busy spin:
timestamps: regular timestamp minute by minute values: 17.70, equally
Fun fact: it spins only when there is one flat series. When I use 2 series (does not matter if flat or not) it renders the chart instantly.