score:0
Accepted answer
where you make your axes, instead of setting display: true
set it to display: 'auto'
this will make it so that when all datasets that are linked to that axis are hidden the axis disapears
Source: stackoverflow.com
Related Query
- Chart.js: Disable Y-Axis, when graph is disabled via Legend
- ChartJS Bar Chart not respecting disabled legend when using cdn
- How to disable Chart JS tooltip when there is no value?
- Maintain Y axis scale in graph with scroll in the X axis when the dataset grows bigger. Aspect-ratio problem
- How to start the line graph from the left Y axis in a line/bar mixed chart (Chart.js)?
- Chart Js update legend boxes of graph with graph line style
- Highlight chart element when hovering over its corresponding legend Item
- disable legend charts.js when width < yyy px
- How can I re-distribute values within a charts.js pie chart when a legend item is turned off/on?
- Chart js custom separate legend returns error when clicking legend
- Chart.js Chart Formatting - Legend & Y Axis & Title
- how to disable last/max value shown on x axis in chart js?
- Chart js show/hide legend during runtime via buttonClick
- How to show/hide animation when legend clicked chart js
- How can I reduce the spacing between my legend and chart proper in my Chart.JS bar chart, and increase it in the graph area?
- chart js graph legend colors
- How to Add X axis Padding in chart js Line Graph
- I am using chart js to draw a chart. I did everything right but i don't know why the x axis and y axis label is not comming in chart. code below
- Chartjs disable legend click does not work when condition is not evaluated
- Keep the Y axis fixed when the chart scrolls horizontally, regardless of DPI settings?
- Trigger bar/pie graph highlight when hovering over an external element [chart.js / chart js] [AngularJS] [angular-chart.js]
- How do I increase the space between the Legend and the Chart when using angular-chart.js?
- In Chart.js set chart title, name of x axis and y axis?
- Chart.js - How to set a line chart dataset as disabled on load
- Chartjs Bar Chart showing old data when hovering
- Chart.js - Increase spacing between legend and chart
- Pie Chart Legend - Chart.js
- ChartJS New Lines '\n' in X axis Labels or Displaying More Information Around Chart or Tooltip with ChartJS V2
- Moving vertical line when hovering over the chart using chart.js
- Chart Js change text label orientation on Ox axis
More Query from same tag
- Can't figure out why the values in my objects are changing
- Chart.js data background color is overwriting point background color
- chart.js how do we extract clicked var?
- Using Datalabels and ChartJS with Chartjs-node-canvas
- Multiple Chart.js charts on a single page, from 1 function but different data
- ChartJS - Uncaught SyntaxError: Unexpected number
- How to give link for lable/Legend in chart.js? and if the value is 0 how to remove the legend?
- ChartJS Legend Not Lining Up
- Bar Chart.js doesn't show values with PHP, MySQL, AJAX
- Line graph - ChartJS
- How to get the image from graph created using chartjs
- How to color legend in angular-chart.js
- Chartjs animate x-axis displaying data incorrectly in mac device
- Show values on top of bars in chart.js
- how to update chartjs2 option (scale.tick.max)
- How can I pass the data into the chartjs label?
- How we can draw a circle in bar chart
- Chartjs: Overlapping values when using Datalabels plugin
- How to display currency in Chart js
- Custom Tooltips On Line Chart Using Chart.js
- Align rotated text to left of canvas
- Tick - no negative
- Chart.js add tooltip at intersection of axes (break even)
- increase the label size of a line chart in chart.js
- Error: "barWithErrorBars" is not a chart type. Vue - chartjs-chart-error-bars
- each section of a pie chart to a random color in chartsjs
- how to display chart.js legend with different bar color
- what is fastest way to draw chartjs charts
- Show multiple data in a single data in chart.js
- How to set the serifs on the X and Y axes?