Sign in to follow this  
kpsrikanth

MultiLine graph

Recommended Posts

I want to draw multiple Lines.

 

Is it necessary the X-Axis points should be same for both the lines.

 

If Yes why so ?

 

 

 

I have a situation like this

 

X1

 

 

 

I have data For

 

Line1 { (X1, Val), (X3, Val), (X7, Val) }

 

Line2 { {X1, Val, (X2, Val), (X4, Val) , (X8, Val)

 

 

 

I would like to draw the above graph with X1--X8 on Y axis.

 

 

 

Please note the fact that I don't have data point for X2 in Line1

 

doesn't mean data is not there or it is an error, Its just I don't have it.

 

 

 

Any Recommendations/help/suggestions are greatly appreciated.

 

 

 

I can provide more information regarding why I need to do some thing like this...

 

 

 

Thx

 

SriKanth

Share this post


Link to post
Share on other sites

After looking out for a while I figured out how to do this

 

 

 

 

 

.

 

.

 

 

 

 

 

or

 

 

 

 

 

 

 

 

 

Line2 { {(X1, Val) , (X2, Val), (X4, Val) , (X8, Val)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

More Information of this is present in the chapter 'Plotting Discontinuous Data' under Advanced Charting Topic.

 

Thx

 

SriKanth

Share this post


Link to post
Share on other sites

XML wasn't posted properly

 

 

 

 

 

<categories>

 

<category label='x1' />

 

.

 

.

 

<category label='x8' />

 

</categories>

 

 

 

<dataset seriesName='Line1' color='1D8BD1' >

 

<set value=Val />

 

<set label='x2' value=''> or <set label='x2' />

 

<set value=Val />

 

<set label='x4' />

 

<set label='x5' />

 

<set label='x6' />

 

<set value=Val />

 

</dataset>

 

 

 

 

 

<dataset seriesName='Line1' color='1D8BD1' >

 

<set value=Val />

 

<set value=Val />

 

<set label='x3' value='' dashsed='1' color='FF0000' />

 

<!-- The line will be dashed with Red Color -->

 

<set value=Val />

 

<set label='x5' />

 

<set label='x6' />

 

<set label='x7' />

 

<set value=Val />

 

</dataset>

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this