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

Add straight line on graph

1 Answer 110 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
MISAEL
Top achievements
Rank 1
MISAEL asked on 26 Oct 2020, 11:45 PM

Hi,

I want to add one straight line (the pink one from the image) on my bar series. How to do it?

Telerik reporting version 11.1.17.614, using visual studio 2015

1 Answer, 1 is accepted

Sort by
0
Mads
Telerik team
answered on 28 Oct 2020, 02:32 PM

Hi Misael,

A very similar result to what you are looking for can be achieved by adding an additional graph series to your bar series. This guide gives an example of how to do so:

How to Create Graph with Column and Line Series 

In your case, add another Graph Series to your bar and choose Line as graph style. Continue setting up the LineSeries in the same way you did with your BarSeries. To make the line into one constant value, you can use the Property Browser while having the graph element selected and navigate to Presentation > Series > LineSeries(the new series you just added, the name might be different) and find the Y value. You can then change this to the value you wish.

To change the label of the line, go to Presentation > Series > LineSeries > LegendItem > Value and set the text-value there.

Hope this solves your problem. Please let me know if I can assist you any further.

Regards, Mads Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
General Discussions
Asked by
MISAEL
Top achievements
Rank 1
Answers by
Mads
Telerik team
Share this question
or