This is a migrated thread and some comments may be shown as answers.

Separate palette per axis?

1 Answer 42 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Brandon
Top achievements
Rank 1
Veteran
Brandon asked on 13 Mar 2020, 03:01 AM

I have a large dynamic number of series to display on a RadCartesianChart (series will be generated using a SeriesProvider). Groups of series will share a common vertical axis (such as 5 series on axis A, and another 5 series on axis B).  All series will be of the same type.

 

If possible, I'd like to use a palette for automatically assigning the colors to each series.  However, the series on Axis A should have one group of colors (e.g. various shades a red), and the series on Axis B should have a different group of colors (e.g. various shades of blue). 

 

 

Is there a way to use a separate palette for each group of series, or associate a group of series with a given group of PaletteEntries?  Since all series will be of the same type, I assume I can only create one SeriesEntry collection in a custom palette for this series type.

 

 

Or are my best options to manually assign the appropriate PaletteEntry to each series, or forget the palette altogether and just manually assign the desired colors?

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 17 Mar 2020, 05:31 PM

Hello Brandon,

The palette feature of the chart works globally for all series. This means that the colors will be distributed across all series without applying any grouping - each series will get a palette entry based on its index in the chart's Series collection. 

The most convenient approach to achieve your requirement is to manually data bind the colors of the data points. You can see how to do this in the Binding the Color of Series Items article. 

Regards,
Martin Ivanov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
ChartView
Asked by
Brandon
Top achievements
Rank 1
Veteran
Answers by
Martin Ivanov
Telerik team
Share this question
or