Sign in to follow this  
anila

How to plot msline chart for uncontinuous data.urgent please help me.

Recommended Posts

Hi All,

<chart connectNullData='1' labelDisplay='Rotate' slantLabels='1'  baseFont='Ge Inspira'  useRoundEdges='1' legendPosition='RIGHT' imageSave='1' link='javaScript:onClick()' yAxisName='Values' legendBorderAlpha='0' shownames='1' showvalues='0' >
<categories>
<category label='Jul-2008'/>
<category label='Aug-2008'/>
<category label='Sep-2008'/>
<category label='Oct-2008'/>
<category label='Nov-2008'/>
<category label='Dec-2008'/>
<category label='Mar-2009'/>
<category label='Jun-2009'/>
</categories>
<dataset seriesName='P-TECH'>
<set value='0.0'/>
<set value='100.0'/>
<set value='100.0'/>
</dataset>
<dataset seriesName='CARDIAC'>
<set value='100.0'/>
<set value='0.0'/>
<set value='75.0'/>
<set value='0.0'/>
<set value='100.0'/>
<set value='100.0'/>
<set value='33.0'/>
</dataset>
<dataset seriesName='MULTIVENDOR'>
<set value='0.0'/>
<set value='0.0'/>
<set value='100.0'/>
<set value='75.0'/>
<set value='100.0'/>
<set value='50.0'/>
</dataset>
<dataset seriesName='NETWORKING'>
<set value='0.0'/>
<set value='100.0'/>
<set value='100.0'/>
</dataset>
<dataset seriesName='DU- IT'>
<set value='100.0'/>
<set value='100.0'/>
<set value='100.0'/>
<set value='75.0'/>
<set value='100.0'/>
<set value='100.0'/>
<set value='50.0'/>
<set value='100.0'/>
</dataset>
</chart>

I have xml file like this.

I am trying to plot msline chart using msline.swf file in jsp.

but my problem is

i have several months as categorie labels.

in database for dataset p-tech,i have values according to month dec-2008,mar-2009,apr-2009.

but it is ploating on jul-2008,aug-2008,sep-2008 respectivley.

how to plot the values with database corresponding values.

Let me know any suggestions.

Share this post


Link to post
Share on other sites
Guest Rajroop

Hello Anila,

Just to reiterate, you are passing your category labels as follows:

<category label='Jul-2008'/>

<category label='Aug-2008'/>

<category label='Sep-2008'/>

<category label='Oct-2008'/>

<category label='Nov-2008'/>

<category label='Dec-2008'/>

<category label='Mar-2009'/>

<category label='Jun-2009'/>

Now, for example, when you're passing the data values for the series "P-Tech", you are passing your set values, which, i assume are to correspond to the categories of Dec, Mar and Jun, is as follows:

<set value='0.0'/>

<set value='100.0'/>

<set value='100.0'/>

Here, what is happening is that the <set> elements given as input are three in number and thereby they are corresponding to the first three categories in the category list which are that of Jul, Aug and Sep.

Here, you need to pass empty <set> elements so that the values, say in the "P-Tech" series, refer/correspond to the correct category label.

Foe example:

<chart ....... >

<categories>

<category label='Jul-2008'/>

<category label='Aug-2008'/>

<category label='Sep-2008'/>

<category label='Oct-2008'/>

<category label='Nov-2008'/>

<category label='Dec-2008'/>

<category label='Mar-2009'/>

<category label='Jun-2009'/>

</categories>

<dataset seriesName='P-TECH'>

<set />

<set />

<set />

<set />

<set />

<set value='0.0'/>

<set value='100.0'/>

<set value='100.0'/>

</dataset>

..

..

..

<chart/>

We would be glad if you'd share your feedback on this, here, in the FusionCharts Forum.

I hope this helps. :)

Share this post


Link to post
Share on other sites

Hello,

wat will happen,if i fill like <set value=" "/> insted of <set/>.

is there any difference for<set /> and <set value=" "/>.

Let me know?????

waiting for ur reply..........

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