I'm starting to work with NVD3.js and I'm a little lost about the configurations possible with this tool. I want to configure many items like:
- Display x axis label for every bar, currently I have only the even ones displaying:
- I want to configure a click function on the bars, which will redirect to a page passing the x axis as parameter, this link can be displayed on the label, but in this case I need to change it, to be able to click on it.
These are my doubts, can someone help me with the documentation link or with the answer to my questions?
-- EDIT --
Found how to display the label for every bar on x axis:
In the nv.d3.js edit the function nv.models.multiBarChart
. In this line: reduceXTicks = true
, set the value to false
.
or
Just add this line to your nv.addGraph
function:
chart.reduceXTicks('false');