Chart How to hide data label having value zero

Hello,

I am using column chart and I have some zero values.I want to hide data labels whose value is zero and tried highcharts properties but not working.

I am using OS11 and working on  Reactive .

I tried below links

http://jsfiddle.net/n560bebm/ 

https://stackoverflow.com/questions/15834687/how-to-hide-zero-values-in-column-chart/3087424 

http://jsfiddle.net/d_paul/q9mve1ax/

Solution

Hi Kishor,


what exactly do you mean ?  For a given label on x-axis, the value is zero, and at this moment your chart is showing a gap on the x axis with no column above it ?  And what you want is that label is not visible at all ?

Not having that datapoint in your list feeding the chart would accomplish that.  

If you map the result of an aggregate directly to the chart source, you must alter your aggregate definition so the 'empty' row isn't part of the resultset anymore.

If you produce in the code a datapointlist based on some data, you can skip the adding of a datapoint for the zero values that you don't want.

If this is too vague for you, can you share an oml, I'll have a look.


Dorine

Solution

Dorine Boudry wrote:

Hi Kishor,


what exactly do you mean ?  For a given label on x-axis, the value is zero, and at this moment your chart is showing a gap on the x axis with no column above it ?  And what you want is that label is not visible at all ?

Not having that datapoint in your list feeding the chart would accomplish that.  

If you map the result of an aggregate directly to the chart source, you must alter your aggregate definition so the 'empty' row isn't part of the resultset anymore.

If you produce in the code a datapointlist based on some data, you can skip the adding of a datapoint for the zero values that you don't want.

If this is too vague for you, can you share an oml, I'll have a look.


Dorine

 

Hi  Dorine ,

Thanks for your reply and following your suggestion I have skipped adding of a datapoint for zero values and my problem solved.