Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NVD3.js: Where is the documentation? Need help to configure some functionalities

Tags:

nvd3.js

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: My currently chart
  • 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');
like image 210
Wellington Zanelli Avatar asked Jun 14 '13 12:06

Wellington Zanelli


2 Answers

Development of NVD3 appears to have moved to the nvd3-community fork which has documentation available.

like image 160
fractious Avatar answered Sep 20 '22 13:09

fractious


Agreed with shabeer90. There is no documentation for NVD3 (wish there was). D3.js documentation is of course largely in play...

like image 36
CarvedBlock Avatar answered Sep 18 '22 13:09

CarvedBlock