Hi,
I am currently trialing your products. I am displaying 2 charts and want to synchronise the vertical axis widths / alignment. It is currently being displayed like this..
Ideally I would like it to look something like this...
Hello Michael,
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.
If the above suggestion helped you solve your issue please verify the thread as answered so other users may take better advantage of it.
Hi Peter,
After trying out several things I have ended up setting a hardcoded extent value on the axis label settings. The problem that I couldn't seem to work around was recalculating the width when the user zooms in, pans etc.
I tried hooking into the "size changed" and the "layout updated" event and measuring the actual widths of all the relevant axis label panels. This seemed to give the correct max width values I would need, but the width did not seem to be updated when I tried to set the width/extent on the thinner axis label panels.
My current large extent value is not ideal.
Regards,
Mike
Hello Mike,
I have been looking into this I can suggest you use the XamDataChart’s ActualWindowRectChanged event in order to register zooming and panning. However if you want to register exactly when the plot are is resized you can set your own element and handle its SizeChanged event like so:
<ig:XamDataChart x:Name="newChart" Grid.Row="1" HorizontalZoomable="True" VerticalZoomable="True" >
<ig:XamDataChart.PlotAreaBackgroundContent>
<Canvas SizeChanged="Canvas_SizeChanged" />
</ig:XamDataChart.PlotAreaBackgroundContent>
Nevertheless your approach to handle the label panels SizeChanged events would be the best one. I am not sure why this hadn’t worked. If you could give me your sample project I might be able to spot what is causing you trouble.
Please let me know, if I can be of any further assistance on the matter.
Hi Michael,
Thank you for letting me know. Please feel free to revisit this whenever you need.
I will have another play around with it at a later date. For now though, I think it will do. Thanks for your help.