-
Notifications
You must be signed in to change notification settings - Fork 326
Flat series can't be rendered (CPU spinning) #219
Comments
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!
With manually set range as 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 |
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.
The text was updated successfully, but these errors were encountered: