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

Message ListMessage List     Post MessagePost Message

  Bar Chart / Waterfall Chart
Posted by Johnny Butler on Jul-08-2014 20:40
Attachments:
Hi Guys,

Ive looked through the galleries and I sort of need a combination between a bar chart and a
waterfall chart.  Ive attached an image to show you what I need.  So I will need some bars
on the x axis to start at 0 and reach 100 for example but then the next bar to start at 70-
100.  Please see attached.

Is there a way to do this currently, i couldn't find an example that was ideal. Its sort of a
waterfall chart without the accumulative data but some of the bars will start at 0 on the x
axis.

thanks

JB
image003.png

  Re: Bar Chart / Waterfall Chart
Posted by Peter Kwan on Jul-09-2014 04:17
Hi Johnny,

The chart you need is a "floating box" chart, of which the waterfall chart is an example. In a
floating box chart, you need just to specify the top and bottom of each of the bars (or
boxes). For example, for your case, the data would be:

double[] boxTop = {2, 3, 3, 5, 5, 6, 7};
double[] boxBottom = {0, 2, 0, 3, 0, 0, 0};
string[] labels = {"Current\\nValuation", "BBB", "CCC", "DDD", "EEE", "FFF", "GGG"};

(As I am not sure which programming language you are using, in the above example, I just
randomly choose to use C#.)

The waterfall chart is just an example where the boxTop and boxBottom are computed from
another data array. In actual applications, you can obtain and compute the boxTop and
boxBottom data in any way you like.

Hope this can help.

Regards
Peter Kwan