When placing a LightningChart inside a Viewbox, major grid lines do not always show up well when the window size is decreased. See the following screenshots for example. Is there any way to improve the grid line appearance? For example, is there a way to make the line thickness greater for the major grid?
I've attached a sample project so hopefully you can reproduce what we're seeing.
Major grid lines for chart in Viewbox
Moderator: Queue Moderators
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: Major grid lines for chart in Viewbox
Hi Shawn,
The ViewBox takes a capture of child control (like LightningChart here), and renders it stretched. Stretching smaller removes pixels.
We can add grid line width adjustment in future version of LightningChart (we'll probably do that anyhow), but you'll face other problems then. Axis division ticks, borders etc. thin lines don't get rendered if scaled just 'right'.
So I'd recommend using some other approach than ViewBox perhaps. Unless there's some property setting in ViewBox.CacheMode that could solve the bitmap rescaling problem. By quickly experimenting, I couldn't find such.
The ViewBox takes a capture of child control (like LightningChart here), and renders it stretched. Stretching smaller removes pixels.
We can add grid line width adjustment in future version of LightningChart (we'll probably do that anyhow), but you'll face other problems then. Axis division ticks, borders etc. thin lines don't get rendered if scaled just 'right'.
So I'd recommend using some other approach than ViewBox perhaps. Unless there's some property setting in ViewBox.CacheMode that could solve the bitmap rescaling problem. By quickly experimenting, I couldn't find such.
LightningChart Support Team, PT