]> git.ipfire.org Git - thirdparty/Chart.js.git/commit
This PR allows for multi-line labels, as per Slack discussion..
authorTarqwyn <steven@tarquindandy.com>
Fri, 3 Jun 2016 16:01:52 +0000 (17:01 +0100)
committerTarqwyn <steven@tarquindandy.com>
Fri, 3 Jun 2016 16:12:19 +0000 (17:12 +0100)
commit2bc8e3c7f6f66d44b9850115e8d19c64b79d7a34
tree7228bf2663699f0d9740c173d334fae4e775f46e
parent829c2be2bcbbe74cd4ded4933234b9ab0d2ca55a
This PR allows for multi-line labels, as per Slack discussion..

Usage: If a label is an `array` as opposed to a `string` i.e. `[["June","2015"], "July"]` then each element is treated as a seperate line. The appropriate calculations are made to determine the correct height and width, and rotation is still supported.

view samples/line-multiline-labels.html to see it working.

On branch multiline_labels
Changes to be committed:
modified:   docs/03-Line-Chart.md
new file:   samples/line-multiline-labels.html
modified:   src/core/core.helpers.js
modified:   src/core/core.scale.js
docs/03-Line-Chart.md
samples/line-multiline-labels.html [new file with mode: 0644]
src/core/core.helpers.js
src/core/core.scale.js