morrisjs / morris.js

Pretty time-series line graphs
http://morrisjs.github.com/morris.js/
6.92k stars 1.23k forks source link

Axis labels #225

Open tzulberti opened 11 years ago

tzulberti commented 11 years ago

Right now, on the line, bar or area chart there is no legend shown for the axis. For example, on the line chart, there is no text under the values to indicate what do the values represent. The same for the y axis

sudodoki commented 10 years ago

The X label is kinda trivial, because you can append it and position at your chart element with regualr css. Pure css Y-axis is a bit trickier. Need to test out this approach which should work in IE above version 7. Some additional logic should be applied for label truncating though. The svg Y-label is rather straightforward and PR for that is https://github.com/morrisjs/morris.js/pull/299.

PeterTheOne commented 9 years ago

+1