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
280
ChartLayerAppearance.ChartLayer is null when UltraChart is not visible
posted

Hi,  

  I’m using a composite chart with a dynamic number of layers. My application allows the user to select different options and by doing so, the current layers are removed and new layers are added to the chart. If my chart.visible = false during that process, the ChartLayerAppearance.ChartLayer of my new ChartLayer is null (it works the first time, but not after) and some issues occur after that. I’m using InvalidatesLayers() so the problem doesn’t come from there. It is really when the chart is hidden that I got this. Do you have any ideas on how to solve this? Also, I wanted to know if it is possible to remove the initial text of the composite chart when there are no ChartArea and ChartLayer. Thanks,

 

  • 28496
    Offline posted

    I think this is working as designed, because the ChartLayer will not be rendered on an invisible chart.  Why do you need to access the ChartLayer when it's not being displayed?

    As for changing that error message, you can do so using the EventArgs in the InvalidDataReceived event.