PMSI-AlignAlytics / dimple

An object-oriented API for business analytics
Other
2.73k stars 556 forks source link

Request: a chart title method #284

Open RichardNeill opened 6 years ago

RichardNeill commented 6 years ago

We have dimple.axis.title but there's no corresponding: dimple.chart.title . This would be nice to add.

Aside: for those seeking a workaround, it can be done by D3 directly, after calling myChart.draw() with something like:

svg.append("text").attr("x", myChart._xPixels()+myChart._widthPixels()/2).attr("y", myChart._yPixels()-20).style("text-anchor","middle").style("font-weight","bold").text("MY CHART TITLE");

Thank you.