score: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,
Source: stackoverflow.com
Related Query
- Chart JS stacked labels instead of making them horizontal
- Horizontal stacked bar chart with chart.js
- Making the labels responsive in chart js
- Stacked horizontal bar chart along total count with chart.js
- Chart.js: Minimum value for x-axis at horizontal stacked bar chart
- In Stacked horizontal bar chart how to remove the vertical line in Chart.js?
- Stacked Mixed Horizontal Bar Chart in Charts.Js Axes Positioning
- How do I create a stacked horizontal bar chart with Chart.js in React?
- Chart, X and Y-Axis labels are blurred in horizontal bar chart using chart.js
- ChartJS - Horizontal Stacked Bar Chart Tooltip being cut off by Bottom of Canvas
- Chart.js how to display multiple labels on multi bar stacked chart
- Stacked Horizontal Bars not in align Chart JS
- Drawing a horizontal line on a stacked bar chart on hover (chart js)
- Draw stacked horizontal bar chart with Average line using ChartJS
- How to make labels on both side from horizontal bar chart js
- ChartJS: Is this horizontal stacked bar and line graph multiaxis chart even possible?
- Chart.js Labelling - Need Two Labels on Y-axis of Horizontal Bar Chart
- How to add data labels in each bar in stacked bar chart in chart.js?
- Chart JS is using 1,2,3 as y values for my points for the second dataset instead of their passed in labels
- Limit labels number on Chart.js line chart
- Chart.js Show labels on Pie chart
- Draw horizontal line on chart in chart.js on v2
- How can I create a horizontal scrolling Chart.js line chart with a locked y axis?
- Chartjs v2.0: stacked bar chart
- ChartJS New Lines '\n' in X axis Labels or Displaying More Information Around Chart or Tooltip with ChartJS V2
- chart.js: Show labels outside pie chart
- Chart.js - Writing Labels Inside of Horizontal Bars?
- Horizontal bar chart in chart.js
- Chart.js how to show cursor pointer for labels & legends in line chart
- Vertical stacked bar chart with chart.js
More Query from same tag
- Update ChartJS with MySQL Data
- How do I remove the ticks or inner circles of my polar area chart Chart.js
- zeroLineColor and zeroLineWidth not working for the x-axis in Chartjs
- How to add a Date Selector to Chartjs in the context of Vue.js
- Draw a horizontal bar chart from right to left
- Adding labels and colours to Chart.JS from arrays
- chart js double tooltip on hover
- How to change line color based on data - chartist or chart.js
- Responsive canvas extends beyond div
- syntax to loop through docs send from express router and use it to plot chart js
- TypeError: Chart.defaults.global.tooltips is undefined in AngularJS
- How to update chart.js using Javascript
- ChartJS (React) Line Chart - How to show single tooltip with data and labels from 3 (multiple) dataset?
- Chart.js - How do I dynamically change bar's stack
- Chart.js version 2.5 tooltip align items horizontally
- How can I apply hover properties only to the current point not the entire dataset
- chart.js add second line in a Line chart that starts from end of first line
- Partitioning radar graph in chart.js by sector
- Parse a JSON object to ChartJS
- Ionic2 Angular2: I can't seem to get an ng2-chart to appear in my app
- How to include adapters and plugins with ChartJS
- On click event to show name of pie chart slice in chartsJS
- Merge Jquery Knob Functionality in Chart Js
- How to render data using chartjs in expressJS
- Chartjs not reading data from vuex mapped state
- Beginner in JS,Stuck with ChartJS and multiple filters and ways to display
- Relative bar chart overlay on line chart in chart.js
- not able to set dataset value in chart.js
- php to json to chart.js
- Resizable/Expendable box annotation in ChartJs