score:3
you can combine "floating bars" and "stacked bar chart". see https://codepen.io/fantasyzer/pen/kkaqgom for an example. note that the data
of each bar is given as an array [ybegin,yend]. if you set stackable
to false
for the y scale the values are to be given as absolute:
datasets: [
{
data: [
[10,12],
[20,25],
[15,25],
[25,28],
...
ref: https://www.chartjs.org/docs/latest/samples/bar/floating.html, https://www.chartjs.org/docs/latest/samples/bar/stacked.html
score:1
i completely failed to get this working for bar charts (works for line, scatter, radar). then i found new chartjs 2.9 feature here min max bar values
using this on bar and horizontalbar successfully.
Source: stackoverflow.com
Related Query
- How to Create Chart.JS Bar Graph with Min, Max & Average
- How to create Bar chart that gets updated from new ajax requests with ChartJS?
- How do I create a stacked horizontal bar chart with Chart.js in React?
- How can I create a stacked bar chart with Charts.JS that displays relative rather than absolute values?
- ChartJs - stacked bar chart with groups - how to create second x-axis with stack id
- how to create a bar chart with php data variables
- How to create rounded bar graph with Angular 7 and Chartjs (v2)
- How to change bar color on a angular-chart and chart js bar graph with multiple datasets?
- How to create a charjs bar graph with many bars?
- how to create bar chart with group and sam color for each group using chart.js?
- How can I create a horizontal scrolling Chart.js line chart with a locked y axis?
- How to create stacked bar chart using react-chartjs-2?
- How do I draw a vertical line on a horizontal bar chart with ChartJS?
- How to display inline values in a stacked bar chart with Chart.js?
- Create a rounded bar graph with Angular and chartJS
- How to create chartjs chart with data from database C#
- How do I force Chart.js axes min and max with react-chartjs-2?
- ChartJS: how to make a bar chart with a horizontal guideline:
- Chartjs 3.x - How to duplicate X axis on both sides of horizontal bar chart with only 1 dataset?
- Chart.Js how to hide datapoints with "0" value in Stacked Bar Chart
- How do I create stacked chart with Chart.js version 2.0.0-beta
- How to create a custom tooltip for chartJS graph with data in JSON array in JavaScript?
- How to set the xAxes min and max values of time cartesian chart in Chart.js
- Create stacked bar chart with a single dataset per stack
- Bar chart with min height and zero values - ChartJs
- How to create a bar and a line in a same graph using chart.js in React?
- How to set X coordinate for each bar with react chart js 2?
- How to create a chart with chartjs.org with data from an array?
- How to create Chart with 2 variables (x,,y)
- Create bar chart with chart.js where space per bar is the same, overall chart size adjusted
More Query from same tag
- Chart.js extremely slow on 8 series of 500+ points
- Drawing line chart in chart.js placing dots only when value changes
- Removing Dynamic Fields by Association in MongoDB Aggregation
- How to add background color for doughnut mid using chart,js
- Chart.js How can I embed additional values to each data point in radar chart
- Chart.js - annotation Vertical line moves with mouse in Angular 6
- Assigning a value to an object w/bracket notation
- Angular chart showing series but no data
- I´m unable to map elements of an array
- Why tooltip position absolute does not apply using js?
- Overlay text message on top of a chart
- chart.js: Chart in chart
- Add data to line chart js dynamically with multiple lines
- Chart.js 3.x not able to display data on chart
- How to destroy a canvas using Id and add new canvas to the same id
- Is it possible to use Chart.js in web2py?
- How to change cursor on hover of data labels in chart.js version 3?
- Background color of the chart area in chartjs not working
- Chart.js - make barchart element blink
- How to show data values or index labels in ChartJs (Latest Version)
- ChartJS - ignore labels
- setting chartjs global configuration using chartkick
- How to fetch all data from API files and assign their values to chart?
- Fail to load chart on Flask/jinja2 html using chart.js
- ChartJS: Changing Font-Size of X-Axis Labels on Line Chart
- ChartJS, make the bars show correct percentage?
- Two independent time axes in Chart.js
- How do I access Chart.js default settings? (& related -- how do I turn the tool tips on?)
- ChartJS New Lines '\n' in X axis Labels or Displaying More Information Around Chart or Tooltip with ChartJS V2
- Chart.js time object labels not updating correctly