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
35
XamDataChart background
posted

Hi,

I have an XamDataChart with a vertical green line (ValueOverlay), and I would like to set a gradient (white-green) background for the XamDataChart so that it extends only up to the green line. How can this be achieved, if possible?

Thank you :)

Parents
  • 34810
    Offline posted

    Hello Julianna,

    If you would like to set a background on the XamDataChart, you can utilize the PlotAreaBackground property of the chart, but the ValueOverlay will always extend the length of the chart in the direction that it is configured (vertical or horizontal).

    If you are trying to configure the ValueOverlay to only extend to a particular set of Y-Axis values, this may be very complicated to try to do with a gradient brush with the PlotAreaBackground. I am curious if you have a mock-up or screenshot of what you are looking to achieve here that you can attach, as perhaps I can make a more concrete recommendation from that?

Reply Children