Background regions for BarSeries

2 posts, 0 answers
  1. Adam
    Adam avatar
    4 posts
    Member since:
    Aug 2015

    Posted 12 Aug 2015 Link to this post

    Hello, i need to do background regions for BarSeries, i just made a visualization(in attachment)

    My code in this moment looks like:

    <telerik:RadCartesianChart BorderThickness="1">
            <telerik:CartesianChartGrid MajorLinesVisibility="Y"/>
            <telerik:DateTimeCategoricalAxis GapLength="0.2" x:Name="HorizontalAxis" LabelFitMode="MultiLine" LabelFormat="dd-MM-yyyy HH:mm"/>
            <telerik:BarSeries ValueBinding ="Glucose" CategoryBinding="Date" ItemsSource="{Binding BloodGlucoseList}">
                        <Rectangle Fill="{Binding DataItem.ChartColor}" MaxWidth="100"/>
                </telerik:BarSeries.PointTemplate >

     How can i archive my goal?

  2. Petar Marchev
    Petar Marchev avatar
    968 posts

    Posted 17 Aug 2015 Link to this post

    Hello Adam,

    I see that you have managed to get the background of the bars working, so I assume that you are talking about the background that is behind the bars (for example, the orange bars have their specific background). Let me know if this is not the region you are talking about.

    You can use a CartesianPlotBandAnnotation for each region you need. In short you need to create the annotations, set the Axis, From and To properties.

    Petar Marchev
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft banner
Back to Top