You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@danielgindi I notice in ChartsDemo, renderer!.drawValues(context: context) is after context.restoreGState() so the value labels are not clipped, and when zooming and scrolling, the value text will be drawn out of contentRect, which seems strange.
Is there any purpose for this?
I am working on fixing the boundary check for drawValues, but I realize we could abandon all the checks but let clipping contentRect do the job.
The text was updated successfully, but these errors were encountered:
Yes!
Look at the Line Chart 2 demo. The values there should obviously bleed out of the content rect.
There's bounds check for drawling values, to not draw values for points which are not visible on the screen. So instead of being clipped at a certain point, you'll see that scrolling the chart will cause the values to hide abruptly.
We should probably add a flag for clipping the values too.
@danielgindi I notice in ChartsDemo,
renderer!.drawValues(context: context)
is aftercontext.restoreGState()
so the value labels are not clipped, and when zooming and scrolling, the value text will be drawn out of contentRect, which seems strange.Is there any purpose for this?
I am working on fixing the boundary check for
drawValues
, but I realize we could abandon all the checks but let clipping contentRect do the job.The text was updated successfully, but these errors were encountered: