Hari Gopal

Hiding zero in Stacked Column

Recommended Posts

hi Friends,

 

 

 

I have a very particular request on a stacked column chart. I want to hide any item that has a value of 0. For example in the xml provided we have a zero value in the Category Product E and Series 2006, I need to hide that, not just the value but that green bar itself. Can you please help me with this?

 

 

 

 

 

The xml and the chart screenshot is attached herewith.

 

 

 

Thanks

 

Hari

post-9381-128441586408_thumb.gif

StCol3D.xml

Share this post


Link to post
Share on other sites

HI Hari,

Welcome to FusionCharts Forum. :)

Could you please try not to provide any value to the <set> elements whose actual value is "0" and you wish to hide?

Ref.- <set value="" />

Hope this resolves you issue. :)

Share this post


Link to post
Share on other sites

Hi Sanjukta,

 

Yes it solved my issue, you are a Life Saver :) .

 

 

 

Thank you so much for your help.

 

:)

 

Regards

 

Hari

Edited by Guest

Share this post


Link to post
Share on other sites

Hi Hari,

You are most welcome. :)

Glad that I could help you in resolving the issue.

Please feel free to revert in case you have any further queries.

Till then, Happy FusionCharting! :)

Share this post


Link to post
Share on other sites

Using

<set value="" />

 

make it works with the Flash version of stacked pie chart.

However, the HTML5 / JavaScript stacked pie chart went wrong unless I used '<set value="0" />'.

Is there a way to fix it?

 

I want to use the Stacked bar chart using JavaScript solution but it should not show any line when the value is 0.

Currently I use Fusion Chart 3 licensed version.

Share this post


Link to post
Share on other sites

Hi,

 

Could you please confirm the version you are currently using is FusionCharts v3.2 or FusionCharts v3.2.1?

 

This is an issue that is fixed in the latest .js file provided with the latest version FusionCharts v3.2.1.

 

In case you are an existing customer, please send us the request for the latest .js file at [email protected].

 

Also, you can try downloading the latest version, i.e, FusionCharts v3.2.1, with the help of the following link:

http://www.fusioncharts.com/Download.asp

 

Hope this helps. :)

Share this post


Link to post
Share on other sites

Hi,

 

Could you please confirm the version you are currently using is FusionCharts v3.2 or FusionCharts v3.2.1?

 

This is an issue that is fixed in the latest .js file provided with the latest version FusionCharts v3.2.1.

 

In case you are an existing customer, please send us the request for the latest .js file at [email protected].

 

Also, you can try downloading the latest version, i.e, FusionCharts v3.2.1, with the help of the following link:

http://www.fusioncha...om/Download.asp

 

Hope this helps. :)

 

 

I can confirm that I use Fusion Chart v3.2.1

Play with different data set, I realize the bug was triggered when the first value within a dataset is empty.

For example:

 

Example 1: This one does NOT work (the first value inside a dataset is empty)

{"chart": {"caption": "My caption"},
 "categories": [{"category": [{"label": "Product A"},{"label": "Product B"},{"label": "Product C"}]}],
 "dataset": [
{
 	"seriesname": "2004",
 	"color": "AFD8F8",
 	"showvalues": "0",
 	"data": [
   	{
     	"value": "700"
   	},
   	{
     	"value": "50"
   	},
   	{
     	"value": "173"
   	}]
},
{
 	"seriesname": "2006",
 	"color": "8BBA00",
 	"showvalues": "0",
 	"data": [
   	{
  	     "value": ""
   	},
   	{
  	     "value": "100"
   	},
   	{
  	     "value": "52"
   	}]
}
 ]
}

 

Example 2: This one works (the second value inside a dataset is empty)

 

{"chart": {"caption": "My caption"},
 "categories": [{"category": [{"label": "Product A"},{"label": "Product B"},{"label": "Product C"}]}],
 "dataset": [
{
 	"seriesname": "2004",
 	"color": "AFD8F8",
 	"showvalues": "0",
 	"data": [
   	{
     	"value": "700"
   	},
   	{
     	"value": "50"
   	},
   	{
     	"value": "173"
   	}]
},
{
 	"seriesname": "2006",
 	"color": "8BBA00",
 	"showvalues": "0",
 	"data": [
   	{
     	"value": "100"
   	},
   	{
     	"value": ""
   	},
   	{
     	"value": "52"
   	}]
}
 ]
}

 

Example 3: This one works (the first value inside a dataset is 0)

 

{"chart": {"caption": "My caption"},
 "categories": [{"category": [{"label": "Product A"},{"label": "Product B"},{"label": "Product C"}]}],
 "dataset": [
{
 	"seriesname": "2004",
 	"color": "AFD8F8",
 	"showvalues": "0",
 	"data": [
   	{
     	"value": "700"
   	},
   	{
     	"value": "50"
   	},
   	{
     	"value": "173"
   	}]
},
{
 	"seriesname": "2006",
 	"color": "8BBA00",
 	"showvalues": "0",
 	"data": [
   	{
     	"value": "0"
   	},
   	{
     	"value": "100"
   	},
   	{
     	"value": "52"
   	}]
}
 ]
}

 

 

I'd like to make the first example working, that is, empty value should be used regardless where it is within the dataset.

Share this post


Link to post
Share on other sites

Hi,

 

We apologize for the inconvenience.

 

This issue has been fixed in the FusionCharts v3.2.2 Development Beta.

 

Could you please mail us at [email protected] stating your Order ID so that we can proceed further with this?

 

Looking forward to your feedback.

Share this post


Link to post
Share on other sites

Hi,

 

We apologize for the inconvenience.

 

This issue has been fixed in the FusionCharts v3.2.2 Development Beta.

 

Could you please mail us at [email protected] stating your Order ID so that we can proceed further with this?

 

Looking forward to your feedback.

 

This v3.2.2 Development Beta version has fixed the bug that I report.

Thank you for your fast response.

Please notify me when a full release is available.

 

Peter

Edited by Peter

Share this post


Link to post
Share on other sites

Hi Peter,

 

You are always welcome. :)

 

We would surely update you as soon as we officially release the FusionCharts v3.2.2.

 

Thank you for your continued patience and patronage.

Share this post


Link to post
Share on other sites

Hello

 

I'm using version 3.2.3-sr3.5347 and the issue seems to be still pending! I cannot confirm if the issue was fixed in version 3.2.2.

 

If the first column contains an empty value, the graph rendering is interrupted by a Javascript error: Uncaught TypeError: Cannot read property 'n' of undefined  in FusionCharts.HC.js:513. Is there a workaround or a fix? 

 

Thanks

Philippe

Share this post


Link to post
Share on other sites

Hi Philippe,

 

Welcome to FusionCharts Forum post.

 

Can you please try downloading the latest version of FusionCharts XT(3.3.1-SR1) and check if your issue has been resolved? It has lot of bug fixes and improvements.

 

If it does not resolve your issue, can you please share the XML for further testing?

 

Download link: http://www.fusioncharts.com/download/trials/

 

Hope this helps.

Share this post


Link to post
Share on other sites

Thanks for your reply. The issue is fixed in the version I downloaded (3.3.1-SR2).

 

I need to upgrade my current version. My company bought a version at least 3 years ago. Is there an upgrade for old versions?

 

Thanks

Philippe

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