The title is positionned in the middle of the graph and right on the margin of the chart (creation of the graph)
You can overide some settings with the opts parameter
opts
graph.title(title, opts)
title: A string that will be displayed as the title of the graph
title
opts:
size: the font-size for the text
any attribute in https://developer.mozilla.org/en-US/docs/Web/SVG/Element/textarrow-up-right
myGraph.title("Reverser 1", { size: "0.3em", fill: "red", y: 10 });
Last updated 6 years ago