d3.jsnvd3.js

Is the length of the text in a nvd3-legend adjustable?


I'm using d3 and nvd3 to visualize some data in a graph. Now, no matter how many graphs i have, the legend above the (line)graph will always be shortened with trailing dots at the end. Example of the legend with trailing dots Is there a way to adjust the legend in a fairly comfortable way? If so, how would i adress the legend and its properties?


Solution

  • I found the answer myself. To keep the text from shortening, you can use chart.legend.align(false)