Hey everyone.

I'm having an issue with a line chart. I'm using a PHP POST request to
create the chart, which just has one line showing the number of calls
over a specified date range.

Everything works well, except that my x-axis labels do not quite match
up with my line data points.

You can see the rendered graph here: http://i.imgur.com/z1gqC.png

As you can see in the image, the line data points are not lined up
with the labels. For instance, the tick mark at 04/06 should be zero,
then proceed up to the y-axis value of 1 at the tick mark for 04/07,
but instead it reached the y-axis value of 1 about halfway between the
04/07 tick and the 04/08 tick. Similarly, the final tick mark at 04/13
should have the peak y-axis data point of 7 right above it, but it
extends again about halfway beyond the final tick mark.

It's like the x-axis labels should all be slid to the right a little
bit. I know that at least with bar charts you can specify chxp as 0,0
to make the axis labels spaced evenly along the axis, which is what
this appears to be doing, but I have not specified this parameter for
this chart.

Any insights or suggestions would be greatly appreciated!

Here is my chart data. I've inserted the data that was used to render
the graph image above.
        'cht' => 'lc',
        'chs' => '900x300',
        'chco' => '4895ab',
        'chdl' => 'Total Calls',
        'chl' => '04/01| |04/03| |04/05| |04/07| |04/09| |04/11| |04/13|'
        'chxs' => '0,,12,0,lt',
        'chxt' => 'x,x,y,y',
        'chxr' => '2,0,7',
        'chxl' => '1:|Days|3:|Calls',
        'chxp' => '1,50|3,50',
        'chd' => 't:0,0,0,0,0,0,1,5,2,0,0,0,7',
        'chds' => '0,7'

-- 
You received this message because you are subscribed to the Google Groups 
"Google Chart API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-chart-api?hl=en.

Reply via email to