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

Message ListMessage List     Post MessagePost Message

  Vertically Stacked Positive Negative Chart with Zones
Posted by John Doe on Mar-04-2013 10:04
Attachments:
Hello,

Can you please help me with a chart that looks like in the file attached? It needs to a
Positive Negative chart with Stacked Vertical Bars showing % difference relative to a
baseline - positive values in a zone colored green and negative values in a zone colored
red.

Please help! I'm on a tight deadline and I'd really really appreciate any help!

Thank you!

(I'm using PHP and Chart Director v4.1)
C.jpg

  Re: Vertically Stacked Positive Negative Chart with Zones
Posted by Peter Kwan on Mar-04-2013 23:58
Hi John,

The chart you attached is just a regular "Multi-Bar Chart" (not a stacked bar chart) with a zoned background color. The data values can represent anything you like, such as representing the "% difference relative to a baseline". The zoned background can created using Axis.addZone. For example, you can create the chart with the plot area being red in color, and then add a zone for the positive range, like:

$c->yAxis->addZone(0, 999999, $myGreenColor);

For the "Multi-Bar Chart", you may refer to the "Multi-Bar Chart" sample code included in ChartDirector for an example. If you mean a "Stacked Bar Chart" instead, please refer to the "Stacked Bar Chart" sample code.

Hope this can help.

Regards
Peter Kwan

  Re: Vertically Stacked Positive Negative Chart with Zones
Posted by John Doe on Mar-06-2013 08:16
Hey Peter, my apologies for the noise. That was easy! :) Thanks!