ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Getting Percentage Bar Chart to suppress bars with 0 total
Posted by Garey Smiley on May-30-2007 00:48
How can I get a Percentage bar chart to not show bars for columns where the total is zero? By default it shows an equal distribution for each row of data. ie. if I have 5 rows I get 20% of each row for a column that actually has a sum total of zero for its rows. I would like it to not show the bar of columns where all rows sum up to zero.

  Re: Getting Percentage Bar Chart to suppress bars with 0 total
Posted by Garey Smiley on May-30-2007 01:43
Got this fixed. Changed:

$layer->addDataSet($Broadmarket, $Color,"Broadmarket");


to:

$layer->addDataSet(new ArrayMath($Broadmarket)->replace(0.00,$perlchartdir::NoValue)->result(), $GoodyearColor,"Broadmarket");

  Re: Getting Percentage Bar Chart to suppress bars with 0 total
Posted by Navnath on Aug-21-2015 20:05
How can I do this in VB.Net code ?

  Re: Getting Percentage Bar Chart to suppress bars with 0 total
Posted by Navnath on Aug-21-2015 21:12
Resolved : assign ChartDirector.Chart.NoValue to 0 value