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

Hide line portions in chart

8 Answers 86 Views
Report Designer (standalone)
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 07 May 2015, 06:50 AM

Hi guys,
I want to hide some line portions in a telerik chart, I don't know how to explain it, so I've created an  example image to show you my idea

 

How you can see in this case I assumed that in March there isn't any data, so the line must by invisible in that month

8 Answers, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 11 May 2015, 02:51 PM
Hello David,

By design the line will not be interrupted when there isn't any data for a particular month. You can work around this behavior by defining a separate line series for each line. For more information, please check the Graph help articles.

Regards,
Nasko
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
David
Top achievements
Rank 1
answered on 12 May 2015, 01:11 PM
Sorry but I don't understand, I've a datasource like this
for example for the line B in march I don't want anything, what would be the correct datasource?
0
Nasko
Telerik team
answered on 15 May 2015, 09:23 AM
Hello David,

You will need to change your data source like this: screenshot.

Attached is a sample report demonstrating the approach.

Regards,
Nasko
Telerik
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
0
David
Top achievements
Rank 1
answered on 26 May 2015, 01:27 PM
but where there are blank cell, for example(Jan, b) or (May, A) the value is null?
0
David
Top achievements
Rank 1
answered on 26 May 2015, 01:38 PM

setting the value to null i'll recevive this errore message:

"An error has occured while processing Chart 'chart1':
Cannot set Column 'B' to be null. Please use DBNull instead."

0
Roman
Top achievements
Rank 1
answered on 05 Nov 2015, 04:51 PM
So there is no solution to achieve hiding parts of line for null values, without creating separate series?
0
Roman
Top achievements
Rank 1
answered on 05 Nov 2015, 04:55 PM
If I want chart appearance like here
http://www.telerik.com/clientsfiles/b78815cb-4e2b-4726-9897-45e928c60eba_Gap-default.png?sfvrsn=0
0
Nasko
Telerik team
answered on 10 Nov 2015, 11:26 AM
Hello Roman,

To achieve the appearance of the chart in the provided screenshot you will need to create a separate series for each line.

Regards,
Nasko
Telerik
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
Tags
Report Designer (standalone)
Asked by
David
Top achievements
Rank 1
Answers by
Nasko
Telerik team
David
Top achievements
Rank 1
Roman
Top achievements
Rank 1
Share this question
or