score:1
Accepted answer
just swap the order in the input i.e.
var barchartdata = {
labels: ["allergan plc", "amazon.com inc", "facebook inc class a"],
datasets: [{
fillcolor: "rgba(220,220,220,0.5)",
strokecolor: "rgba(220,220,220,0.8)",
highlightfill: "rgba(220,220,220,0.75)",
highlightstroke: "rgba(220,220,220,1)",
data: [7, 8, 9]
}]
};
Source: stackoverflow.com
Related Query
- How to order a horizontal bar chart - chartJS & Chart.HorizontalBar.js
- How to draw Horizontal line on Bar Chart Chartjs
- Chartjs 3.x - How to duplicate X axis on both sides of horizontal bar chart with only 1 dataset?
- chartjs : how to set custom scale in bar chart
- How do I draw a vertical line on a horizontal bar chart with ChartJS?
- How to change Chart.js horizontal bar chart Width?
- In Stacked horizontal bar chart how to remove the vertical line in Chart.js?
- Remove padding from chartJs horizontal bar chart
- Minimum value for x Axis doesn't work for horizontal bar chart | ChartJS
- ChartJS horizontal chart display legend on each bar
- ChartJS: how to make a bar chart with a horizontal guideline:
- How to highlight single bar in bar chart using Chartjs
- How do I create a stacked horizontal bar chart with Chart.js in React?
- ChartJS 2.9.4 can't overlay line data on Horizontal Bar chart
- Chartjs bar order adjustment after bar chart is drawn
- How to show the chartjs bar chart data values labels as text?
- Chartjs duration horizontal bar chart
- chartjs 2.7 how to add labels in center of horizontal bar graph
- Chartjs - Stacked bar chart data order causes invisible other values
- ChartJS - Horizontal Stacked Bar Chart Tooltip being cut off by Bottom of Canvas
- How to remove a label in top of bar in chartjs chart
- ChartJs - stacked bar chart with groups - how to create second x-axis with stack id
- How to draw multiple color bars in a bar chart along a Horizontal Line using chart.js
- ChartJS - would like to create a mixed chart with horizontal Bar and a dot to represent the answer from the current user
- how to insert dynamic data from sql into chartjs stacked bar chart javascript
- Draw stacked horizontal bar chart with Average line using ChartJS
- How to configure Chartjs Bar Stacked Chart in Laravel 8
- How Can I Get An Instance of a ChartJS Bar Chart Using Angular
- How to make labels on both side from horizontal bar chart js
- How to make multiple horizontal bar chartjs
More Query from same tag
- ng2-translate on component file combined with charts.js
- React setState() not updating state when button clicked
- Angular2 + Chart.js and ng2-charts. Data binding not working as expected
- Laravel - How to Display both count and percentage (%) in chartjs pie chart
- Chart.js stepsize with multiple yAxis scales
- ChartJS - Custom tooltip with icon
- Bold text inside doughnut chart (chart.js)
- How to set axes' step size in Chart.js 2?
- Chartjs - How to update the data from values in my database?
- Periodically refresh placeholder and canvas tag in Django template
- rotated partial doughnut chart with a point marker in chart.js agularJS
- HTML5 chart stacked bars with repeated colors
- Stack grouped xAxes in bar chart
- Unable to draw a scatter chart with vue-charts
- how to create a bar chart with php data variables
- Laravel & ChartJS
- Chart JS : Getting issue with draw bar chart
- Floating clone does not show in chrome if dragged element contains a chartjs component
- Unable to see the lines in chart.js
- Show Data labels on Bar in ChartJS
- How to make a Chart.js Bar chart stay in its place
- I want to draw a horizontal line
- chart.js label color change based on value
- Missing Tooltip for some data points using chartjs
- How to remove the inside-border from doughnut chart? Chart.js
- Problems with max and min value of Chart.js [line chart]
- How to display data from database into line graph using php and mysql?
- what is output format of Utils? (using chartjs in vanillajs, not react/angular)
- Chart.js not installing with NPM
- findOne returns undefined in onRendered