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

Vertical axis with the same color of the serie

1 Answer 33 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Vinc3nt
Top achievements
Rank 1
Vinc3nt asked on 03 Jul 2013, 07:58 AM
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

1 Answer, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 05 Jul 2013, 11:45 AM
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 >>
Tags
ChartView
Asked by
Vinc3nt
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Share this question
or