Google Charts - Changing "logScale:true" option from natural log scale to log10 scale

38 views
Skip to first unread message

Mücahit Gürbüz

unread,
Oct 12, 2017, 3:32:13 AM10/12/17
to Google Visualization API
Hello all,

There is an only one options for transforming horizontal axis of charts to logscale. When I do "logScale:true", it transforms horziontal axis with natural logarithm base. The thing that I need to implement is horizontal axis with log base 10.

How can I proceed this issue?

Best,

Daniel LaLiberte

unread,
Oct 12, 2017, 6:48:42 AM10/12/17
to Google Visualization API
Any log scale turns out to be the same regarding the log scaling itself, with multiplication by a constant.  The ticks that are displayed is then the main concern.  If you want to restrict which tick values to display, you currently (in the current release) are fairly limited. But the easiest way to get what you want is probably to specify the 'ticks' option with exactly the ticks you want.  Hope that is enough of a hint.

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/ba906832-c3b1-462e-9ded-d5cec179b5bb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Mücahit Gürbüz

unread,
Oct 12, 2017, 7:47:41 AM10/12/17
to Google Visualization API
Dear Daniel,

Thanks for the reply. I got a little bit confused. Defining the tick values only does not change the spacing between values on the x axis. I think I need to manipulate all the x values by taking log10(x)? What do you think? 

On Thursday, 12 October 2017 13:48:42 UTC+3, Daniel LaLiberte wrote:
Any log scale turns out to be the same regarding the log scaling itself, with multiplication by a constant.  The ticks that are displayed is then the main concern.  If you want to restrict which tick values to display, you currently (in the current release) are fairly limited. But the easiest way to get what you want is probably to specify the 'ticks' option with exactly the ticks you want.  Hope that is enough of a hint.
On Thu, Oct 12, 2017 at 3:32 AM, Mücahit Gürbüz <mucahi...@gmail.com> wrote:
Hello all,

There is an only one options for transforming horizontal axis of charts to logscale. When I do "logScale:true", it transforms horziontal axis with natural logarithm base. The thing that I need to implement is horizontal axis with log base 10.

How can I proceed this issue?

Best,

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.



--
Reply all
Reply to author
Forward
0 new messages