Perfect! thanks

On Tuesday, 11 February 2014 13:56:51 UTC, Daniel LaLiberte wrote:
>
> Since the log of 0 is -Infinity, we can't show 0 on a pure log scale chart 
> unless it is infinitely long.   However, you can get what you want, if I 
> understand you correctly, by using a different log scale which shows values 
> close to zero in a linear scale.
>
> vAxis: {scaleType: 'mirrorLog'}
>
> which looks like this:
>
> [image: Inline image 1]
>
> This mode also shows the log of negative values as the negative of the log 
> of the absolute value.
>
>
>
> On Tue, Feb 11, 2014 at 7:42 AM, Sam Halliday 
> <[email protected]<javascript:>
> > wrote:
>
>> Hello,
>>
>> I have a data set with Y values [0, 100] and I want to plot it 
>> logarithmically.
>>
>> Google Charts is placing the X intercept at Y=1 and any values [0,1] are 
>> drawn below the intercept, with the columns coming below the axis. It looks 
>> really weird and is confusing my target audience.
>>
>> I'd like the hAxis line to be aligned (as close as possible) to Y = 0. 
>> How can I setup the behaviour I want?
>>
>> Try this in the playground to see what I mean:
>>
>> function drawVisualization() {
>>   var data = google.visualization.arrayToDataTable([
>>     ['Year', 'Austria'],
>>     ['2003',  100],
>>     ['2004',  100],
>>     ['2005',  50],
>>     ['2006',  0.001],
>>     ['2007',  0.5],
>>     ['2008',  1]
>>   ]);
>>
>>   new google.visualization.ColumnChart(document.getElementById(
>> 'visualization')).
>>       draw(data,
>>            {title:"Yearly Coffee Consumption by Country",
>>             width:600, height:400,
>>             hAxis: {title: "Year"},
>>             vAxis: {logScale: true}}
>>       );
>> }
>>  
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Google Chart API" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to 
>> [email protected]<javascript:>
>> .
>> Visit this group at http://groups.google.com/group/google-chart-api.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> -- 
> Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> 
>  - 978-394-1058
> [email protected] <javascript:>   5CC, Cambridge MA
> [email protected] <javascript:> 9 Juniper Ridge Road, Acton MA
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Google Chart API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-chart-api.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to