[Chartjs]-Chart JS stacked labels instead of making them horizontal

1👍

This behaviour comes from that your labels array contains an array containing an array with all labels like this: [["label1", "label2", "label3"]] this is meant for multiline labels. You need to make sure your labels are in a single array like this: ["label1", "label2", "label3"] then it will render correctly.

A simple fix for this is replace labels: [answers], by labels: answers,

Leave a comment