mdewilde / chart

Java library for use with Chart.js javascript library
Apache License 2.0
112 stars 43 forks source link

Add scaleLabel property to XAxis and YAxis #24

Open brunslo opened 5 years ago

brunslo commented 5 years ago

This allows cartesian axes to be labeled as described in the official documentation for Chart.js 2.x.x: https://www.chartjs.org/docs/latest/axes/labelling.html

For simplicity this reuses the existing ScaleLabel class, which is missing the lineHeight and padding properties described in the official documentation.