For fill in chart using

3 posts, 0 answers
  1. Lee
    Lee avatar
    30 posts
    Member since:
    Apr 2014

    Posted 24 Apr 2014 Link to this post

    YAxis is created each series.

    Currently, all axis's color is same.

    I want to adjust 'fill in chart'.

    But RadCartesianChart's initialize value is null.

    How can I do it?

    Please answer about that.

    Below, my XAML code

                                    <Style TargetType="chartView:LineSeries">
                                        <Setter Property="LegendSettings">
                                                <telerik:SeriesLegendSettings Title="{Binding Name}"/>
                                        <Setter Property="VerticalAxis" Value="{Binding Data, Converter={StaticResource additionalVerticalAxisConverter}}"/>
  2. Markus
    Markus avatar
    42 posts
    Member since:
    Nov 2012

    Posted 25 Apr 2014 Link to this post

    Have you looked at the documentation?


    Regards Markus
  3. Pavel R. Pavlov
    Pavel R. Pavlov avatar
    1237 posts

    Posted 29 Apr 2014 Link to this post

    Hi Lee,

    You can try binding the ElementBrush property of the corresponding axis. You can see how we demonstrated this approach in our Multiple Axis online demo.

    <telerik:LineSeries CategoryBinding="Year" ValueBinding="{Binding GdpIndicatorBinding}" ItemsSource="{Binding GdpSelection}">
            <telerik:LinearAxis Title="{Binding GdpIndicatorLabel, Converter={StaticResource upperCaseConverter}}"
                                  ElementBrush="{Binding ElementName=chart, Path=Palette.GlobalEntries[1].Fill}"
                                  HorizontalLocation="Right" />
                <Ellipse Height="7" Width="7"
                         Fill="{Binding ElementName=chart, Path=Palette.GlobalEntries[1].Fill}"
                         Visibility="{Binding Converter={StaticResource emptyValueToVisibilityConverter}}" />
    Please give this approach a try and let us know if you need any further assistance.

    Pavel R. Pavlov
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
Back to Top