Sign in to follow this  
some_one

Lineset Overlay Doesn't Go Below Zero

Recommended Posts

Hi,

 

I have a bar chart with all values > 0. I have a lineset overlay with some negative values however these plots do not render below zero for some reason... the negative values only go to zero. Is there a setting to allow the lineset to be plotted exactly as the value indicates, regardless of what the bar dataset is?

 

thanks

Share this post


Link to post
Share on other sites
Guest Sumedh

Hi,

 

A warm welcome to FusionCharts Forum! smile.gif

 

Can you please provide some information of following points?

 

> Can you please share a screen-shot of your requirement?

 

> Also, send us the chart XML.

 

> Mention the FusionCharts version that you have used.

Share this post


Link to post
Share on other sites

Hi,

 

A warm welcome to FusionCharts Forum! smile.gif

 

Can you please provide some information of following points?

 

> Can you please share a screen-shot of your requirement?

 

> Also, send us the chart XML.

 

> Mention the FusionCharts version that you have used.

 

Please see attached. The screenshort displays the current issue. You can see from the tooltip (and chart.xml) that some of the line values are negative but the line plot does not reflect that. Not sure of the exact version i am using. How can i find that?

 

thanks

fc.zip

Share this post


Link to post
Share on other sites

Hi,

 

A warm welcome to FusionCharts Forum! smile.gif

 

Can you please provide some information of following points?

 

> Can you please share a screen-shot of your requirement?

 

> Also, send us the chart XML.

 

> Mention the FusionCharts version that you have used.

Any update? Is this a bug? thanks!

Share this post


Link to post
Share on other sites
Guest Sumedh

Hi,

 

Apologies for the delayed response.

 

It seems, you are using MS Stacked Column 2D Line Dual Y Combination Chart . The chart XML you are using is incorrect. You would follow standard XML for MS Stacked Column 2D Line Dual Y Combination Chart.

 

Ref. Code:

<chart caption='Annual Revenue' subcaption='In Million $'  xaxisname='Year' PYaxisname='Sales in M$' SYAxisName='Cost as % of Revenue'
decimals= '0'numberPrefix='$' numberSuffix='M' sNumberSuffix='%25' >

  <categories>
     <category label='2001'/>
     <category label='2002'/>
     <category label='2003'/>
     <category label='2004'/>
     <category label='2005'/>
  </categories>

  <dataset>
     <dataset seriesName='Product A' color='AFD8F8' showValues= '0'>
        <set value='30' />
        <set value='26' />
        <set value='29' />
        <set value='31' />
        <set value='34' />
     </dataset>

     <dataset seriesName='Product B' color='F6BD0F'  showValues= '0'>
        <set value='21' />
        <set value='28' />
        <set value='39' />
        <set value='41' />
        <set value='24' />
     </dataset>   
  </dataset>   

  <dataset>
     <dataset seriesname='Service A' color='8BBA00' showValues= '0'>
        <set value='27' />
        <set value='25' />
        <set value='28' />
        <set value='26' />
        <set value='10' />
     </dataset>

     <dataset seriesname='Service B' color='A66EDD' showValues= '0'>
        <set value='17' />
        <set value='15' />
        <set value='18' />
        <set value='16' />
        <set value='10' />
     </dataset>

     <dataset seriesname='Service C' color='F984A1' showValues= '0'>
        <set value='12' />
        <set value='17' />
        <set value='16' />
        <set value='15' />
        <set value='12' />
     </dataset>      
  </dataset>

  <lineset seriesname='Cost as % of Revenue' showValues= '0' lineThickness='4' >
     <set value='57' />
     <set value='68' />
     <set value='79' />
     <set value='73' />
     <set value='80' />
  </lineset>

</chart>

 

Please refer the following link, for more information:

http://docs.fusioncharts.com/charts/contents/?ChartSS/MSStColLineDY.html

 

Hope this helps!

Share this post


Link to post
Share on other sites
Guest Bindhu

Hi,

 

Not exactly. It can be placed anywhere within the <chart> element but not within the dataset or category element.

 

Please refer to the XML data format provided by Sumedh.

 

Hope this helps!

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