Draw annotations behind the lineseries

4 posts, 0 answers
  1. Wouter
    Wouter avatar
    24 posts
    Member since:
    Jul 2013

    Posted 07 Feb 2014 Link to this post

    Is it possible to draw annotations behind lineseries? We use CartesianPlotBandAnnotation to draw regions on our grid, but it needs a semitransparent Fill, otherwise the lineseries are hidden. This deteriorates the color chosen for these regions. Is there a way to draw the annotations behind the graph?

    Thanks,
    Wouter
  2. Petar Marchev
    Admin
    Petar Marchev avatar
    968 posts

    Posted 10 Feb 2014 Link to this post

    Hi Wouter,

    I think you should only have to set the ZIndex property of the annotation to about -250. Note that this is not the Panel.ZIndex property, but a property of the annotation. 

    Regards,
    Petar Marchev
    Telerik

    Check out the new Telerik Platform - the only modular platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native apps. Register for the free online keynote and webinar to learn more about the Platform on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT).

  3. UI for WPF is Visual Studio 2017 Ready
  4. Wouter
    Wouter avatar
    24 posts
    Member since:
    Jul 2013

    Posted 11 Feb 2014 in reply to Petar Marchev Link to this post

    Thanks this works nicely. The annotations are drawn behind everything including the striplines of the grid. This was solved as follows:

    <telerik:RadCartesianChart.Grid>
      <telerik:CartesianChartGrid StripLinesVisibility="Y" MajorLinesVisibility="None">
        <telerik:CartesianChartGrid.YStripeBrushes>
          <SolidColorBrush Color="#33999999"/>
          <SolidColorBrush Color="Transparent"/>
        </telerik:CartesianChartGrid.YStripeBrushes>
      </telerik:CartesianChartGrid>
    </telerik:RadCartesianChart.Grid>
  5. Petar Marchev
    Admin
    Petar Marchev avatar
    968 posts

    Posted 11 Feb 2014 Link to this post

    Hi Wouter,

    I suggest you play with the ZIndex to find a proper value that will position the annotation below the series and on top of the grid, instead of using the transparency trick.

    Regards,
    Petar Marchev
    Telerik

    Check out the new Telerik Platform - the only modular platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native apps. Register for the free online keynote and webinar to learn more about the Platform on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT).

Back to Top