Click here to Skip to main content
15,889,808 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Friends

I have been trying for past two days on this issue. I am plotting a graph by storing the values in an array from database.

I have to plot in such a way that the line should be continuous, even though some values are null. In my case, I am breaking the line were values are not there. But I need to join the lines with the next valid data instead of breaking.

Please, give me a solution, Your help will be greatly appreciated.

Thanks in advance
Raja Sebastin
Posted
Updated 23-Mar-11 4:49am
v2

1 solution

I have to plot in such a way that the line should be continuous, even though some values are null. In my case, I am breaking the line were values are not there.

I guess, easiest would be to skip those points in the plot data that are null. Kind of filter them out. This would leave you with only valid data and a continuous graph. Based on what you say, null valued data holds no importance and so can be left out.
 
Share this answer
 
Comments
raja.sebastin 25-Mar-11 8:51am    
Thank u for ur reply

But the thing is i have two values to be plotted for a single array with reference to the x axis.

like for eg:

value 1 value 2 Date(x)
12 no value 01.03.2011
10 15 05.03.2011
15 no value 06.03.2011
25 10 08.03.2011

in the above case value1 is one line and value 2 is another line,
so value 1 will be continuous line since it has all values, but value2 line will be broken , instead i have to join 15 and 10 directly. but it should have reference to date.Now wt i am doing is i have used .datagrid to skip plotting null value, so the graph gets broken.
raja.sebastin 28-Mar-11 2:38am    
Like in fusion charts they have the option connectNullData='1' for joining two data even though intermediate data is missing , plz help

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900