score:1

Accepted answer

chartjs v2.0

change next:

color

         datasets: [{
            fillcolor: "rgba(0, 255, 0, 1.0)",
            data: ["1", "2", "3"]
        }]

to

         datasets: [{
            backgroundcolor: "rgba(0, 255, 0, 1.0)",
            bordercolor: "#000",
            data: ["1", "2", "3"]
        }]

rotation of lables

            xaxes: [{
                ticks: {
                    minrotation: 90
                }
            }]

to

            xaxes: [{
                ticks: {
                    maxrotation: 0, //do not change ticks width. or increase              if you need to change also ticks.
                },
                aftercalculatetickrotation : function (self) {
                    self.labelrotation = 90; //or any other rotation of x-labels you need.
                }
            }]

manual labels rotation chartjs v2.0


Related Query

More Query from same tag