This is a migrated thread and some comments may be shown as answers.
BarSeries, CustomPalette, Cluster
2 Answers 14 Views
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 16 May 2017, 02:45 PM
I have successfully combined a set of 4 bar series, in a cartesian chart, with a custom palette, and then clustered the results.  chart1 is the result.  The custom palette actually has 12 defined colors, but since the there are only 4 bar series, then the chart doesn't leverage the other colors.  The second attempt was to create a set of bar series for each of the 12 data points.  chart2 is the result.  The result leverages the custom palette across all of the data points, but the cluster seems to have some troubles.  Is there a way to have the bar use all space, or expand the bar size so that it looks like chart1? 

2 Answers, 1 is accepted

Sort by
0
Peter
Top achievements
Rank 1
answered on 16 May 2017, 04:29 PM

Telerik UI for Xamarin Forms Version 2017.2.503.10 on Visual Studio 2015 with Xamarin Forms 2.3.4.231 leveraging a portable project

0
Ves
Telerik team
answered on 19 May 2017, 08:39 AM
Hi Peter,

I believe I should start with a clarification here. BarSeries is a set of items (Bars) where each item has a Category (e.g. Exploring) and a Value (e.g. 85). That said, your example actually has 3 BarSeries, each of them with 4 items.

Now, for BarSeries, palettes work this way -- each series has its own color and it's the same for all items in the series. This is allows the observer to correlate different values. E.g. in chart1, I might consider the lower bars (pink-ish ones) results for 9-th graders, the middle bars for 10-th graders and the upper ones for 11-th graders. With 12 series, one item each, the chart tries to reserve space, so that in each category there is enough space to fit an item from every series, hence the result you see. Unfortunately, the requested scenario (namely, bars layout as in chart1.png, but each bar using a separate color) is not supported.

Best regards,
Ves
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Chart
Asked by
Peter
Top achievements
Rank 1
Answers by
Peter
Top achievements
Rank 1
Ves
Telerik team
Share this question
or