Ok, you need to set the backgroundColor.strokeWidth to some non-zero value
(it defaults to 0) - this will cause the border to appear. The gridlines
are being affected by the axis labels (I don't know why), you can get them
to work by formatting the axis labels to use shorter text:
hAxis: {
gridlines: {
count: 10
},
format: 'MMM yyyy'
}
I copied your code (minus Facebook and Google Analytics JS) over to
jsfiddle and added the new options so they work: http://jsfiddle.net/bGW6Z/
On Tuesday, March 27, 2012 5:08:05 PM UTC-4, Oliver Kilk wrote:
>
> Yes, Im using corechart.
> http://www.liiter.ee/beta/uus/index_beta.html
>
> On Tue, Mar 27, 2012 at 10:25 PM, Oliver Kilk <[email protected]>wrote:
>
>> <---
>> var options = {title: 'Keskmine kütusehind Eestis',
>> height: 260,
>> backgroundColor: {
>> stroke: 'black',
>> fill: '#D6D6D6'},
>> hAxis: {
>> gridlines: {
>> count: 10}}
>> };
>> var chart = new
>> google.visualization.LineChart(document.getElementById('chart_div'));
>> chart.draw(data,options);
>> }
>> --->
>>
>> My concern is that only options that apply to my chart is 'fill' and
>> 'height'.
>> Data is described here:
>> <---
>> data.addColumn('date', 'Kuupäev');
>> data.addColumn('number', 'Bensiin 95');
>> data.addColumn('number', 'Bensiin 98');
>> data.addColumn('number', 'Diisel');
>> --->
>>
>> Numbers and dates should be.
>>
>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-visualization-api/-/cQUHqKPl24kJ.
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-visualization-api?hl=en.