jQuery Range Bar charts are very similar to Range Column Chart except that the bars are horizontally placed in order to emphasize y values on axis. Range Bar Charts are also drawn between a range of values - Low & High. Given example shows simple jQuery Range Bar Chart along with HTML source code that you can edit in-browser or save to run it locally.
window.onload = function () { //Better to construct options first and then pass it as a parameter var options = { animationEnabled: true, exportEnabled: true, title: { text: "Employees Salary in a Company" }, axisX: { title: "Departments" }, axisY: { title: "Salary in USD", interval: 10, suffix: "k", prefix: "$" }, data: [{ type: "rangeBar", showInLegend: true, yValueFormatString: "$#0.#K", indexLabel: "{y[#index]}", legendText: "Department wise Min and Max Salary", toolTipContent: "<b>{label}</b>: {y[0]} to {y[1]}", dataPoints: [ { x: 10, y:[105, 160], label: "Data Scientist" }, { x: 20, y:[95, 146], label: "Product Manager" }, { x: 30, y:[87, 115], label: "Web Developer" }, { x: 40, y:[90, 130], label: "Software Engineer" }, { x: 50, y:[100,152], label: "Quality Assurance" } ] }] }; $("#chartContainer").CanvasJSChart(options); }
Opacity & color of bars can be customized using fillOpacity & color properties. Some other related customization options are dataPointWidth, indexlabel, etc.
Note For step by step instructions, follow our jQuery Integration Tutorial