I am trying to add axis labels to the Multi-Bar diagram of an NVD3 diagram, but it only works for the x axis. Is there any way around this?
Here I gave an example: http://jsfiddle.net/msts1jha/2/
var chart = nv.models.multiBarChart(); chart.xAxis .tickFormat(d3.format(',f')); chart.yAxis .tickFormat(d3.format(',.1f')); chart.xAxis.axisLabel("x axis"); chart.yAxis.axisLabel("y axis");
Your yAxis is hidden, set the left margin on the chart and it will work.
yAxis
Try the following:
var chart = nv.models.multiBarChart().margin({left: 100});
Additional margin information is available here.
Hope this helps
Source: https://habr.com/ru/post/1204511/More articles:Accessing navigation properties from IdentityUser when disabling LazyLoading - c #Why the class class method is called before the constructor - inheritanceHow to implement JavaFX language support in FXML documents? - javaSpring AOP with AspectJ: boot time - springIntelliJ too many files open error - javaGradle executable not found in Windows 7 - gradleClang / GCC Plugin for Interpreting C ++ 11 User Attributes - c ++Updated to version 2.1.2 Ruby, passenger is still at 1.9.3 - ruby-on-railsHow to transfer a phone number from the main account to a sub-account - twilioHorizontal scrolling, like vertical scrolling in IntelliJ IDEA - intellij-ideaAll Articles