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 |