score:1
Accepted answer
simply change label1
from an array of strings to an array of arrays:
label1: [["uno", "company1"], ["dos", "company2"], ["tres", "company3"]]
chart.js will treat separate array items as separate lines.
Source: stackoverflow.com
Related Query
- Trying to insert another label for a piechart in ChartsJS
- ChartsJS get value of Data/Dataset Label for Tooltip
- Chart Js Change Label orientation on x-Axis for Line Charts
- show label in tooltip but not in x axis for chartjs line chart
- How to add label for ChartJs Legend
- Chart JS show multiple data points for the same label
- How to hide the y axis and x axis line and label in my bar chart for chart.js
- PrimeNg bar chart how to show a label for the y-axis
- chart js - Apply different color for each x-axes label
- X-axis multiple colored label for bar chart using chart.js
- How to get onClick Event for a Label in ChartJS and React?
- Chart.js number Y-AXIS label format for many decimal places
- chartjs: trying to rotate the y-Axis label
- Charts.js - Display data label only for the last value
- How to add label in chart.js for polar chart area
- ChartsJS make number in middle for only one chart
- Chartjs - Donut Chart label for small values not visible
- Show ChartJS Stacked bar on another bar for Target vs Sales analysis
- how to show labels in laravel charts when the name of the label is on another table?
- Chart.js - PieChart defined background color for specific dataset element
- Passing an Array from a Flask view to the javascript code of another view
- Chart Js reduce text size for label on X axis
- getting chartsjs to show key of data label instead of value
- Tool tip not showing for those label who's data overlapped on each other in chart.js
- Chart.js - changing tick / label positions for x axis time series
- Trying to use axios, vuejs and a dummy api for my chartjs and googlecharts (get requests only)
- Prevent label of another data from being toggled whenever a label from one data is toggled
- Set fixed label size for grouped bar chart in angular Chartjs
- problem hidding the label in chartjs (ng2chart for angular)
- ChartJS multiple sub labels for label
More Query from same tag
- Chart.js chart appears and disappears on form submit
- ChartJs Not displaying data
- problem with chart js pie chart dataset data
- Chart.js:9352 Failed to create chart. Unable to dynamically create charts
- How to send data to chart js using angular
- Laravel - How to Display both count and percentage (%) in chartjs pie chart
- Chart js shows old chart data when hover
- Is it possible to have a canvas next to another canvas without space on the bottom?
- Chart.js, how to reduce space between labels and bars (horizontal bar chart)
- Chart.js 2 - label overlapping
- Can I use a gradient in Chart.js without accessing the chart context when the chart is created?
- chart.js: set specific numbers in y-axis
- How do I prevent Chartjs tooltip callback returning multiple instances of the same value?
- Chart.js : Controller for Scatter chart doesn't work for draw function
- how to change chart JS title text on change input field?
- Line Chart Labels - Ng2Charts - ChartJS
- How to position yAxes labels in chartJS
- How to add panning to chart in chartjs?
- Chart JS: Donut/Doughnut Chart: Tooltip to be shown always for all the data. All tooltip is not shown when multiple data are with 0 data
- Chart.JS custom y axis labels with text that has value
- How to have more controls over the borderColor per arc segment for chart.js pie charts
- jQuery convert hex to rgba
- chartJS label on each side of the chart
- using gradient colors in angular-chart.js
- Pie Chart Label is not visible in ReactJS
- Chart.js v3.x time series on x axis
- How to add space between datasets in ng2 doughnut chart
- Chartjs with Vue, Bar Chart Border Radius not working
- PrimeNg bar chart how to show a label for the y-axis
- Display Bar chart values in the graph - ChartJS