You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello everyone,
I've searched a bit here and on the examples page, but haven't found anything about logarithm-scaled axes. Is it possible to create them? If not, consider this as a feature request.
Best regards,
Yakov.
do you mean that it's possible to emulate this feature now? I've looked through the #Axis examples, but haven't noticed a way to put the ticks in arbitrary positions.. What example should I look into?
Best regards and thanks for your time and your work,
Yakov.
that's a pretty ugly hack. would it be possible to expose an API that allows any d3 scale to be plugged in?
Leprosy, bcornwellmott, fdelia, smortex, jesper-bylund and 10 moreaashanand and ethernideeaashanand and ethernideeaashanand and ethernideeaashanand and ethernidee
d3.js directly supports log scale on an axis, so it'd be really nice if that could be surfaced in c3. It's a much nicer solution than recomputing the data, because it also handles the ticks.
@masayuki0812 - by closing this, does it mean you won't consider support for it? It's really a critical feature for certain applications. It would be great to have proper integration if you have the time / inclination please.
JetForMe, ethernidee, PoomSombutboon and nwierzbowskiethernidee
Activity
masayuki0812 commentedon May 21, 2014
Hi, Sorry currently not. Now you need to generate the logarithm-scaled data by yourself and plot.
I'll consider as a new feature later.
YakovL commentedon May 22, 2014
Hello Masayuki,
do you mean that it's possible to emulate this feature now? I've looked through the #Axis examples, but haven't noticed a way to put the ticks in arbitrary positions.. What example should I look into?
Best regards and thanks for your time and your work,
Yakov.
gourneau commentedon Jun 11, 2014
When you prepare your data convert into log scale. In Python let's say you have a list like this
You just do this
pbustosl commentedon Jun 25, 2014
An implementation of Masayuki's workaround:
ihsansatriawan commentedon Jul 5, 2014
hai @pbustosl ,,it's work for me!thx...but when i have value 0 in data1, it's not work, how can i handle value 0 ? thanks
abrin commentedon Sep 22, 2015
the following would also format the values:
robertlevy commentedon Apr 8, 2016
that's a pretty ugly hack. would it be possible to expose an API that allows any d3 scale to be plugged in?
Leprosy commentedon Jun 23, 2016
+1 ...I need to draw a chart in log scale.
NullVoxPopuli commentedon Jul 9, 2016
I would also like the ability to set my y axis(es) to by log
ericsvendsen commentedon Aug 19, 2016
I too would like to be able to use a log scale for the y axis.
ergo commentedon Nov 8, 2016
Any news on this?
panthony commentedon Jul 11, 2017
Tried to tackle this issue (#2100). This is not 100% perfect but it may be sufficient for a lot of cases.
bhavikboricha009 commentedon Apr 12, 2018
I tried @pbustosl workaround... it was helpful.
but when the data value is 1, the y axis was starting from 1 . also when the data value was 0 chart was not rendering.
i have done some workaround for that.
please refer this JSFiddle https://jsfiddle.net/86chryat/
JetForMe commentedon Mar 27, 2020
d3.js directly supports log scale on an axis, so it'd be really nice if that could be surfaced in c3. It's a much nicer solution than recomputing the data, because it also handles the ticks.
AbeHandler commentedon Apr 4, 2020
I agree log scale would be useful
adrianbj commentedon May 29, 2020
@masayuki0812 - by closing this, does it mean you won't consider support for it? It's really a critical feature for certain applications. It would be great to have proper integration if you have the time / inclination please.