ActiveReports v15.1 ColorPalette for ChartControl

Posted by: daniels on 4 April 2023, 4:21 pm EST

    • Post Options:
    • Link

    Posted 4 April 2023, 4:21 pm EST

    I have a stacked bar chart that could have dozens of series on it. The ColorPalettes available don’t have enough colors available to not repeat colors too often. Is there a way to assign the chart to custom colors, or pick a palette that has more than a dozen colors?

  • Posted 5 April 2023, 6:56 am EST

    Hi Daniel,

    You can set custom color palette for charts. For this select the chart add colors to the Custom Palette property of the chart control and set the Palette property as “Custom”.

    For reference, please see the attached screenshot and the sample report.

    SampleChartReport.zip

  • Posted 5 April 2023, 10:33 am EST

    Hi Rajput,

    Thanks for your reply. I should specify, is there a way to do this in the VisualStudio .NET version of active reports?

    Thanks,

    Daniel

  • Posted 6 April 2023, 8:59 am EST - Updated 6 April 2023, 9:14 am EST

    Hi Daniel,

    Yes, you can also set the chart color palette through code. For reference, I have attached a sample application as well.

    And if you want to set the color palette through the Visual Studio Integrated Designer then you may refer to the attached screenshot. The Palette and ColorPalette properties can also be accessed from the integrated designer as well.

    Regards,

    Akshay

    ChartColorPalette.zip

  • Posted 6 April 2023, 10:27 am EST

    Hi Akshay,

    Is it possible to use a custom palette in a section report? Or is it just available in page reports?

    Thanks,

    Daniel

  • Posted 10 April 2023, 8:44 am EST

    Hi Daniel,

    You can set the Series’ backdrop property to set the color for Series.

    Please refer to the sample code below:

    chart.Series[0]Backdrop = new GrapeCity.ActiveReports.Chart.Graphics.Backdrop(Color.Red);
    

    For reference, I have also attached a sample application along with.

    ChartCustomPaletteSample.zip

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels