Linechart- X-axis is begining from middle of chart and not from left

16 views
Skip to first unread message

Abhishek Agarwal

unread,
Dec 20, 2011, 6:00:47 AM12/20/11
to Google Visualization API
I am creating a line chart with corechart package with approximately
40 datapoints and 4 series of data.
The values in the x-axis are not starting from beginning of the axis.
Instead they are appearing at the right side.

I am using the command line:
chart.draw(data, {curveType: "function",
width: 600, height: 300, title: 'Portfolio Value
with Stock prices', titleX:'Stock Price',
hAxis:{viewWindowMode:'maximized'}, vAxis:
{viewWindowMode:'maximized'}});

but still all the elements are compressed and shifted to right.

Any setting so that x-axis content is spread on entire chart area.

Thanks
Abhishek

asgallant

unread,
Dec 20, 2011, 9:10:34 AM12/20/11
to google-visua...@googlegroups.com
Can you post the full javascript?
Reply all
Reply to author
Forward
0 new messages