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

How to draw a line between a label and a label

2 Answers 88 Views
Charts
This is a migrated thread and some comments may be shown as answers.
kako
Top achievements
Rank 1
kako asked on 01 May 2018, 09:54 AM

Hi.

Is there how to draw a line of categoryAxis between label and label on AreaChart.

AreaChart's majorGridLines and minorGridLines draw lines on the label.

2 Answers, 1 is accepted

Sort by
0
Accepted
Tsvetina
Telerik team
answered on 02 May 2018, 02:57 PM
Hello Kako,

This should work with minorGridLines setting. I tried in this Dojo, where it works as expected:
https://dojo.telerik.com/ACUBAWum

Isn't this the look that you are trying to achieve? The lines appear between the category labels.

Also, you can draw lines and other elements anywhere in the Chart during the render event. Here is one example for adding a single custom line to the Chart:
Render Custom Plot Bands

Regards,
Tsvetina
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
kako
Top achievements
Rank 1
answered on 07 May 2018, 12:34 AM

Thank you for answering!

Mostly the purpose was achieved by the method taught.

However, I wanted to hide the gray lines completely, so the purpose I completely achieved by making the color of the majorGridLines transparent.

https://dojo.telerik.com/ukOKudEy

Thank you!

Tags
Charts
Asked by
kako
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
kako
Top achievements
Rank 1
Share this question
or