Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
710
Plot Area Width
posted

Is there any way to get the width of the chart plot area?  I need to know this because I am using my own down-sampling algorithm.  I don't want to place more points on the chart than there are horizontal pixels in the chart area so that I can bypass the built in down-sampling.  

 

  • 27093
    posted

    Hello,

    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.

  • 27093
    posted

    Hello gongchengshi,

    I can suggest using both the WindowRect and the PlotAreaBackgroundContent ptoperties of the XamDataChart in order to get all the information you need. PlotAreaBackgroundContent's ActualWidth will give you the width and the WindowRect's Width will give you the scaling factor if you have applied any.

    Please let me know if you require any further assistance on the matter.