Row and column names for axis’s

Can I give labels to the X and Y axis’s by a bar or line chart like image below? I’ve searched in the documentation but nothing found that works.

image

I need to do that for show statistics for a big data site. The users will see how many users are registered by city, town or village.

I use the latest version of chart.js

Author: Fantashit

1 thought on “Row and column names for axis’s

  1. Based on the documentation and a few examples, it should be feasible using the scale.scaleLabel.labelString option:

      options: {
        scales: {
          xAxes: [{
            scaleLabel: {
              labelString: 'Month'
            }
          }],
          yAxes: [{
            scaleLabel: {
              labelString: 'New Items'
            }
          }]
        }
      }

Comments are closed.