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
125
How to control line appearances in a Composite Chart
posted

Hello,

 I have a Composite Chart with a few layers, all set to LineChart types. I figured out how to control the colour of said lines in each layer. Now, I want to control how each line appears. Is there a way to do this? I am using the .Net 1.1-compatible version of the control suite (NetAdvantage for ASP.NET 2007 Vol. 1 [.NET 1.x])

 Thanks for any advice,

 Srdjan

  • 26458
    Offline posted

    You can modify the appearance of each layer by creating an instance of an appropriate appearance class. For example:

    LineChartAppearance appearance = new LineChartAppearance();
    appearance.DrawStyle =
    LineDrawStyle.Dot;
    appearance.MidPointAnchors =
    false;
    appearance.Thickness = 5;
    myLineLayer.ChartTypeAppearance = appearance;

    • 125
      posted in reply to Max Rivlin [Infragistics]

      Thank you for that. It worked perfectly. I do have one more question. Since I am building these charts through code and not the ChartWizard, how do I set the NullHandling to DontPlot on the Composite chart? Is this set on each individual layer or on a chart level?

       Thanks again for your help

      • 26458
        Offline posted in reply to Richard

        it's set on each layer.
        using the code from my previous reply, it would simply be appearance.NullHandling = NullHandling.DontPlot