Is there a way to draw logarithmic line charts with nvd3
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’m not a nvd3/d3 expert, but I’ve made something which seems to work like this for the
nv.models.lineChart:Notes:
yScalefunction may be slightly different between models (chart.lines.yScale&cart.lines2.yScaleonnv.models.lineWithFocusChartfor example)D3 only supports base10 currentlyAs of version 3.1.0 D3.js supports arbitrary logarithm base, usage example http://bl.ocks.org/mbostock/7621155