Say we have the bar chart of the example http://dimplejs.org/examples_viewer.html?id=bars_vertical and I want to change the x axis label from "Months" to "Meses". How can I do that?
相关问题
- Highlight parent path to the root
- Avoid overlapping of nodes in tree layout in d3.js
- d3.js moving average with previous and next data v
- Touch handling completely broken on Chrome version
- d3: Plot as a cumulative graph
相关文章
- D3.js: Stop transitions interrupting on mouseover?
- Adding text to the center of a D3 Donut Graph
- rect collision detection d3js
- Pausing and resuming a transition
- D3 grouped bar chart: How to rotate the text of x
-
Error:
attribute d: Expected number, “MNaN, - how to use a CDN inside a React component
- D3.js - detect intersection area
After drawing you can access the title object and set it's text as follows:
Here it is working: http://jsfiddle.net/y3BVN/
Instead of changing the titleShape after drawing, you can also change the title directly before drawing.
To do so, simply assign the title property: