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

Change color for Chart series column on each item

2 Answers 207 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Gabriela
Top achievements
Rank 1
Gabriela asked on 10 Apr 2014, 03:01 PM
Hi,

I am using a Telerik chart as follows:

    @(Html.Telerik().Chart(Model.Items)
    ....
    .Series(series => series.Column(s => s.Property1).Name(constantValue1).Color("Red").Axis(constantValue2))
    ...
    
Each item contains 2 properties: Property1, which is the column height and Property2, which is the column color.
I would like to be able to display for each column the corresponding color (instead of the single color for all columns).
Can you please help me with this issue?
Thank you.

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 14 Apr 2014, 10:20 AM
Hi Gabriela,

Please have a look into this help documentation which discuss about the same scenario.

Thanks,
Princy.
0
Gabriela
Top achievements
Rank 1
answered on 14 Apr 2014, 11:07 AM
Hi Princy,

Thank you for your reply and the suggestion. I have already implemented a solution using series by colors, which led me to a correct graph display.

Best regards,
Gabriela
Tags
Chart (Obsolete)
Asked by
Gabriela
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Gabriela
Top achievements
Rank 1
Share this question
or