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
1225
How to reset the legend and Axis values in my Graph
posted

Hello friends, Please, I have this problem, I'm doing a graph and I have a buttom when I do click it shows another graph, but my legend and my Axis X are not cleared. Please how to clear and do another graph.

Thanks for all. My code from Legend is this:

            CompositeLegend myLegend = new CompositeLegend();
            myLegend.ChartLayers.Add(myScatterLayer);
            myLegend.Bounds = new Rectangle(88, 2, 11, 15);
            myLegend.BoundsMeasureType = MeasureType.Percentage;
            myLegend.PE.ElementType = PaintElementType.Gradient;
            myLegend.PE.FillGradientStyle = GradientStyle.ForwardDiagonal;
            myLegend.PE.Fill = Color.CornflowerBlue;
            myLegend.PE.FillStopColor = Color.Transparent;
            myLegend.Border.CornerRadius = 10;
            myLegend.Border.Thickness = 1;

 

Regards...

  • 53790
    Suggested Answer
    posted

    Hello Eros,

    I`m not sure that I understand your scenario, but maybe you could achieve the desired behavior if you set the new DataSet to your UltraChart`s datasource. By this way automticaly the UltraChart will show the new data with new axis and legend. Another aproach could be if you are using for example additional ChartArea. Please give me more details about your scenario or send me small sample with your issue and I`ll be glad to reaserch this issue for you.

    Regards