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

Message ListMessage List     Post MessagePost Message

  How can I change label of bar graphs
Posted by Golf on Jan-25-2012 19:25
Attachments:
Hello Peter,

I have one question about bar graph. Why bar graph generate different graph in spite of it

has equal information(three information).

how can I slove it?

I want to manage it has size equal graph.

Thank you for your help.

Ps. Thank you very much for your help, Peter.

Regards

Golf
display_bar.png
display_bar_1.png

  Re: How can I change label of bar graphs
Posted by Peter Kwan on Jan-26-2012 00:48
Hi Golf,

In your bar charts, there are a lot of empty bars. That's why the bottom part is empty.

For the first chart, you probably have around 29 empty bars (that is, bars with zero as the data value), and 3 non-zero bars. So you see 29 empty positions, followed by 3 visible bars. The x-axis labels also contain 29 empty labels (empty strings), and 3 non-empty labels.

For the second chart, you may have 2 empty bars and 3 non-empty bars, and the x-axis labels have 2 empty strings, and 3 non-empty strings.

Note that in PHP, the array index should start at 0. So the first element should be with index 0, the second element with index 1, and so on. If you do not use a certain position, PHP will assume it to be 0 in numeric context, and assume it to be an empty string in string context.

If the above still does not solve the problem, would you mind to inform me of your charting code and your data?

Regards
Peter Kwan