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

Draw annotations behind the lineseries

3 Answers 155 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Wouter
Top achievements
Rank 1
Wouter asked on 07 Feb 2014, 01:45 PM
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

3 Answers, 1 is accepted

Sort by
0
Petar Marchev
Telerik team
answered on 10 Feb 2014, 05:14 PM
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).

0
Wouter
Top achievements
Rank 1
answered on 11 Feb 2014, 01:13 PM
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>
0
Petar Marchev
Telerik team
answered on 11 Feb 2014, 01:24 PM
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).

Tags
ChartView
Asked by
Wouter
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
Wouter
Top achievements
Rank 1
Share this question
or