score:31
I found a way to remove this line. It's actually called the border
of the axis and there's an option for it, see "Grid Line Configuration":
scales: {
yAxes: [{
gridLines: {
drawBorder: false,
}
}]
}
score:-2
You can use the scaleLineColor: 'transparent'
it will remove the y any x axis
score:0
gridLines: {zeroLineColor: 'transparent'}
score:0
this workerd for me
yAxes: [ { gridLines: { display: false, }, }, ],
score:2
The left line is still coming from the x axis grid lines. Changing the 'zeroLineColor' of the x axis to 'transparent' hid it.
xAxes:[{
gridLines:{
zeroLineColor:'transparent'
}}]
score:4
This should work
options: {
scales: {
yAxes: [{
gridLines: {
display: false,
}
}]
},
}
score:4
This worked for me in version 2.8.0 -
scales: {
yAxes: [{
gridLines: {
tickMarkLength: false,
}
}]
}
score:4
In v3 you can do:
options: {
scales: {
y: {
grid: {
drawBorder: false,
}
}
}
}
https://www.chartjs.org/docs/master/axes/styling#grid-line-configuration
Source: stackoverflow.com
Related Query
- How to hide the y axis and x axis line and label in my bar chart for chart.js
- How can I remove extra whitespace from the bottom of a line chart in chart.js?
- How to start the line graph from the left Y axis in a line/bar mixed chart (Chart.js)?
- In Stacked horizontal bar chart how to remove the vertical line in Chart.js?
- How to remove the extra Y axis from a bar chart in chart.js
- Remove the vertical line in the chart js line chart
- How to remove the line/rule of an axis in Chart.js?
- How do I change the 'months' language displayed on the date axis in Chart JS?
- How to align Chart.JS line chart labels to the center
- How to remove the Chart.js x Axis bottom line?
- ChartJs - Pie Chart - how to remove labels that are on the pie chart
- How to change the label and grid line position on a timeseries chart in Chart.js 3?
- How to Remove axis Lines from chart in chart js
- chart.js: How do I make the radar chart axis labels bigger?
- How to change the chart line or area colors according to the user need?
- how can i use chart.js to create a chart that has one time series line and one linear line on it at the same time?
- Chart.js - how to make proportional intervals on X axis on line chart
- How to reduce the number of points shown on line chartjs chart with a large dataset?
- How do you make a progressive line chart with time as the X axis?
- How do I remove the ticks or inner circles of my polar area chart Chart.js
- How to show tooltip value of all data falling on the same axis in chart js?
- How do you set x and y axis and Title for a line chart using charts.js?
- How to use chart.js to plot line chart with x axis as time stamp in seconds
- ChartJs 2 How to remove numbers from the doughnut chart on loading
- How do I change the grid line style on the Y axis in Chart.js?
- How to get rid of the line on top of every point on a line chart (Chart.js)
- How to remove the Legend of chart from angular Chart.js
- How to plot a line chart which has both the start and points outside the canvas area using Chart.js
- How can I remove the white border from Chart.js pie chart when all legends are hidden?
- Chart.js how to show line chart without displaying the labels on xaxis and yaxis
More Query from same tag
- How can i get the Chart JS Bar Graph Bar Label and Value on click?
- Unable to draw a scatter chart with vue-charts
- chart.js - dynamically added chart makes previous ones disappear
- How to plot a single value with line in line chart graph using charts.js?
- Chart.js label value
- chartjs - How to use differente color if value is lower than previous value?
- Javascript: problems with the order of my index
- Chart JS Re-Animate chart with onclick
- Angular 5, Chart.js displaying multiple charts, one on each tab
- How do I access chart.js options dynamically?
- Unregister plugin in Chart.js
- How to sort color segments by value within the 100% stacked bars rather than by value across all the stacked bars in Highcharts or ChartJs
- Chart.js - shrinking legend to fit data
- Angular chart how to show the legend data value by default along with legend name
- How do i programmatically set bar fillColor in chartJs + angular
- How to add commas when showTooltips is false in ChartJS
- Showing border for columns in barchart of chart js on hover?
- ChartJS doughnut chart not displaying colours
- Charts.js graph not scaling to canvas size
- angular-chart add horizontal line
- How to install chartjs on laravel 6 via npm
- How to limit number of displayed points in chart.js?
- How to get dataset from MySQL using Flask?
- In Chart.js set chart title, name of x axis and y axis?
- Chart.js timeline
- Chartjs: Overlapping values when using Datalabels plugin
- How to export Chart.js chart using toBase64Image, but with no transparency?
- How to save Chart JS charts as image without black background using blobs and filesaver?
- Chart.js Label color positioning in tooltip/legend
- Chartjs not working with d3 from csv source