Change color for Chart series column on each item

Thread is closed for posting
3 posts, 0 answers
  1. Gabriela
    Gabriela avatar
    5 posts
    Member since:
    Apr 2014

    Posted 10 Apr 2014 Link to this post

    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. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 14 Apr 2014 in reply to Gabriela Link to this post

    Hi Gabriela,

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

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Gabriela
    Gabriela avatar
    5 posts
    Member since:
    Apr 2014

    Posted 14 Apr 2014 in reply to Princy Link to this post

    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
Back to Top