score:2
Accepted answer
you can use highcharts fixed placement columns that is inverted. check the demo posted below.
html:
<script src="https://code.highcharts.com/highcharts.js"></script>
<div id="container"></div>
js:
highcharts.chart('container', {
chart: {
type: 'column',
inverted: true
},
xaxis: {
categories: [
'seattle hq',
'san francisco',
'tokyo'
]
},
yaxis: [{
min: 0,
title: {
text: 'employees'
}
}, {
title: {
text: 'profit (millions)'
},
opposite: true
}],
legend: {
shadow: false
},
tooltip: {
shared: true
},
plotoptions: {
column: {
grouping: false,
shadow: false,
borderwidth: 0
}
},
series: [{
name: 'employees',
color: 'rgba(165,170,217,1)',
data: [150, 73, 20],
pointpadding: 0,
grouppadding: 0.15,
pointplacement: 0
}, {
name: 'employees optimized',
color: 'rgba(126,86,134,.9)',
data: [140, 90, 40],
pointpadding: 0.2,
pointplacement: 0
}]
});
Source: stackoverflow.com
Related Query
- How to create overlapping bar charts in angular js?
- How to change the color of the bar in barchart if the data is negative - Angular Charts
- How to create rounded bar graph with Angular 7 and Chartjs (v2)
- How to create chart.js vertical bar chat with rounded corners in angular 6?
- How to modify bar width in Chartjs 2 bar charts
- How to create rounded bars for Bar Chart.js v2?
- How to create stacked bar chart using react-chartjs-2?
- How to zoom charts in chart.js using angular 7
- Angular chart.js onClick is not working - how to get all elements of a bar when it is clicked on
- Create a rounded bar graph with Angular and chartJS
- How do I make line charts overlay over bar charts in chartjs
- How to create dynamic charts with Django and Chart.js?
- How to set single color on each bar in angular chart js
- How to Create Chart.JS Bar Graph with Min, Max & Average
- chart.js version 3 - How to make an overlapping bar chart?
- How do I present progress in an Angular bar chart?
- How do I correctly include Moment.js and Chart.js with RequireJS when I want to create charts with time scales?
- How to retain spacing between bars for two different bar charts in Chart.js 2
- How to create Bar chart that gets updated from new ajax requests with ChartJS?
- How to create two pie charts using Chart.js API?
- How do I create a legend for a bar chart?
- How do I create a stacked horizontal bar chart with Chart.js in React?
- how can i add value on bar in the charts in chart.js vs 3.x
- How to create a bar and a line in a same graph using chart.js in React?
- How do I create a chartjs bar chart?
- How to create dynamic D3 tickFormat in dc charts
- How to customize tooltip on mouse hover of a polar area chart of Angular Charts
- How to create spacing between Charts and Legends in Chart.js
- How to create a stacked donut chart in Angular 5
- import Json formatted values to create bar charts with Chart.js
More Query from same tag
- How to create html id attributes dynamically?
- How to set up an initial Zoom value for a chart (ChartJS + ChartJS Zoom plugin)?
- chart.js Hide empty Chart and keep previous data if no data? .net MVC
- Chartjs - How to update the data from values in my database?
- Chartjs + jsPDF = Blurry image
- Re-compile JSON data to make less rows
- Using a function in ng2 Charts
- How do I persist the gridlines for ticks that are not displayed? [Chart.js]
- angular-chart.js showing black color chart in Firefox, Safari, and IE
- Vue ChatJS redirect on pointer click
- Chart.js bar thickness
- Getting the postion of the y-axis labels in chartJS
- how to remove old data from Chart js on mouse hover using mvc c#?
- Chartjs does not render chart when set responsive option to true
- How to create pdf file in node js
- Cannot read property 'reactiveProp' of undefined in vue-chartjs
- Chart js custom single tooltip not working
- react-chartjs-2 Line Chart not updating with State
- ChartJS tooltip values aren't matching the data after updating multiple charts
- Chart.js tooltip at any point on the chart
- Automatic update a ChartJs with SQL
- Unable to make y-axis to begin at zero on Charts.js v2.1.4
- How to get chart from data points (arrays) with inconsistent time intervals and chart.js?
- Chart.js "minBarLength" not working as intended?
- How to include Chart.js in my AngularJS project?
- Extension for chart.js 2.X
- How do I change the grid line style on the Y axis in Chart.js?
- chart.js-plugin-annotations multiple horizontal lines in one chart
- Dynamically Setting Height of Chart
- Customizing Chart.js troubleshoot