score:0
this behavior comes from the fact that you did not provide the correct y-axis id and x-axis id in the boxes definition.
i see that you did not put any id for x-axis and y-axis in your chart's xaxes and yaxes definition, so their default ids are 'x-axis-0' and 'y-axis-0'.
for each of your boxes definition, try changing
'xscaleid' : 'xaxes',
'yscaleid' : 'yaxes'
into
'xscaleid' : 'x-axis-0',
'yscaleid' : 'y-axis-0'
Source: stackoverflow.com
Related Query
- Chart.js Box Annotations Fill Entire Chart
- chart js how to fill legend box with colour
- How to populate entire box inside a React chart (between two axes)
- Chart JS Fill Between two lines
- Fill Chart.js bar chart with diagonal stripes or other patterns
- How to create a gradient fill line chart in latest Chart JS version (3.3.2)?
- Getting chart js bar chart to fill window
- Chart js doughnut box shadow
- canvas fill text vanishes when hovering over chartjs pie chart
- How to add area with break on line chart with fill color
- chart annotations not showing in Angular 2
- Having problems getting a line chart in Chartsjs to go *up* to 1, with bkg fill *under* the chart line
- Search box to show information in line chart
- How to include chart js annotations in ember?
- Cannot rotate label in chart js annotations plugin
- Chart JS - Grid colors and gradient fill not showing
- Javascript chart fills up the entire browser window
- Chart Js Line chart with fill on click with full information of its legend text
- Modify the information box of the scatter chart in Chart.JS
- what is wrong with my code ? java script chart position
- How to print a chart rendered by code
- angular chart js set fill color of bar chart
- The colors of the bar chart in chart.js is not showing. I tried background color and fill color but none of it worked
- Angular-Chart-JS - Line chart with different fill colors according to points' range
- Chart.JS - multiple - box - annotations - displays only the last box
- VueJS + Chartjs - Chart only renders after code change
- How do I destroy/update Chart Data in this chart.js code example?
- Chart.js Fill line chart from another value than 0
- Is it possible to fill particular portion between given start & end angle in pie chart in chart.js?
- getting additional value fields from data source for dx.chartjs doughnut chart
More Query from same tag
- Chart.js. Edit bar width -v2.5-
- How to manipulate different charts by angular
- Is there a way to apply css on chart.js V3.7.0 tooltip without it being custom or external?
- Chart.js Bar graph with percentage values
- Adding Image inside Linechart points in ChartJs
- How should data be structured for lineplots with vue/chart.js
- Angular ng2-charts Radarchart compile error for startAngle
- How do I incorporate Luxon timezone options with chart.js?
- Chartjs / Javascript - My function not returning array properly, but console logs okay
- How can labels/legends be added for all chart types in chart.js (chartjs.org)?
- How do I recursively aggregate values inside of a loop of JavaScript objects?
- Animate Chart.JS Only Once
- React chartjs 2 - Type 'string' is not assignable to type '"timeseries"'
- How to make chart with chartjs.?
- Chartjs 3.2 problem with setting whole numbers for Y axis
- Is it possible to make 3D pie chart using chart.js?
- Use Chartjs-Annotation-Plugin without using "import"
- How to add an input box next to Chart.js y axis label?
- How can I set the scale with alphabet on chartjs?
- How to create vertical arbitrary line in financial chart?
- How to update JS variable in value field of charts.js?
- Chart.js Bar Chart - how to chart bars from 0
- Change bar color depending on value
- Can we have both ajax and jquery scripts in one function?
- hide labels and 0 values in chart.js?
- Chartjs - tooltip - different corner radius
- Chartjs background color multiple Dataset
- How to add space between datasets in ng2 doughnut chart
- How to apply image on each bubble in chartjs?
- Chart.JS spacing and padding