Vertical axis with the same color of the serie

2 posts, 0 answers
  1. Vinc3nt
    Vinc3nt avatar
    10 posts
    Member since:
    Jun 2013

    Posted 03 Jul 2013 Link to this post

    Hi,

    I have one vertical axis for each serie. The color of the serie is pick randomly (Windows8 palette).
    The type of serie can be :
    - BarSerie
    - AreaSerie
    - SplineSerie
    - LineSerie

    I need to put the name of the axis in the same color of the serie (eventually all the axis).
    Is that possible ?

    Thank you,
    Vincent
  2. Evgenia
    Admin
    Evgenia avatar
    1406 posts

    Posted 05 Jul 2013 Link to this post

    Hi Lamarque,

     You can achieve this if you look at our online demo with source code provided. You can either bind the ElementBrush of your axis to the corresponding GlobalSeries color or to a SeriesColor (if you have specified your own). For example:

    ElementBrush="{Binding ElementName=chart, Path=Palette.GlobalEntries[0].Fill}"

    Regards,
    Evgenia
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. DevCraft banner
Back to Top