[Chartjs]-Trouble getting Axis Labels to show up in Chart.js

3👍

Just add “[]” brackets to Axes values as below code:

"scales": {
                "xAxes": [{
                    "scaleLabel": {
                        "display": true,
                        "labelString": "Horizontal Axis"
                    }
                }],
                "yAxes": [{
                    "scaleLabel": {
                        "display": true,
                        "labelString": "Vertical Axis"
                    }
                }]
            }

Check link:
http://jsfiddle.net/skfs1fjp/7/

Leave a comment