score:2
Accepted answer
solved it (sort of). when i downgrade to chart.js 2.8.0
the chart borders now display as expected. with 2.9.3
the borders were not showing at all, regardless of chart type.
score:3
gridlines: { drawborder: true, linewidth: 0 }
score:3
you can put this options in gridline properties:
xaxes: [{
gridlines: {
display: true,
drawborder: true,
drawonchartarea: false
}
}]
source: https://www.chartjs.org/samples/latest/scales/gridlines-display.html
Source: stackoverflow.com
Related Query
- How to display axis borders only (no grid lines) in chartjs?
- How do I add time sourced from an external source as an X axis to a ChartJS graph?
- Chartjs 3.x - How to duplicate X axis on both sides of horizontal bar chart with only 1 dataset?
- How to display multiple y axis titles on seperate lines and rotated 90 degrees clockwise in chart.js
- How can I make small grid lines above ChartJS labels?
- how can i remove the grid lines in chartJs
- How to display grid lines (without showing label) between each ticks?
- ChartJs How to display horizontal and vertical lines through the datasets points with their values on axes?
- How to set ChartJS Y axis title?
- ChartJS New Lines '\n' in X axis Labels or Displaying More Information Around Chart or Tooltip with ChartJS V2
- Chartjs linechart with only one point - how to center
- ChartJS : How to leave just points without lines
- How to display value of only one datapoint in line chart
- How to display data labels outside in pie chart with lines in ionic
- How to remove gridlines and grid labels in Chartjs Radar?
- How do I fix over limit y axis value in ChartJS
- How to display only one label in a multi line char?
- how to change Y axis value dynamically based on user input in Chartjs for Line chart?
- How to add background color between two lines in yAxis Chartjs
- How to add ChartJS code in Html2Pdf to view image
- ChartJS - how to display line chart with single element as a line? (not as a dot)
- In Chart.js >3.0, on axis of type time, how to show labels and ticks only for existing data points (make labels reflect data)?
- Specific grid line in X axis in ChartJs
- ChartJS / Chartjs-plugin-annotation How to draw multiple vertical lines using an array?
- ChartJS : How to display two "y axis" scales on a chart
- How to hide grid lines and x-axis labels in chart.js?
- How to add background color between two specific lines in Chartjs 3.1
- How to draw multiple line on y axis for same x axis in chartjs v2?
- how to display chart data as html table chartjs
- How to show both overlapping lines in in chartjs
More Query from same tag
- Format X label on mouse hover in chart.js
- Why must I create my VueJS application before using ChartJS?
- Chart.js: bar chart first bar and last bar not displaying in full
- charts.js update global variables
- How do I update the Chart.js automatically every 2 seconds?
- chart.js change size of label of radar chart
- Chart.js - Scale of secondary y-axis?
- ChartJS does not display when using local Chart.js file
- Working with multiple date axes in ChartJS
- Add dynamically function to Chart.js
- How can I set y-axis label on Chart.js?
- Load Tooltip faster during onHover of Legend Doughnut chart
- how to add multiple data in chart js dynamically from JSON
- I get to do scroll
- First point on scatter plot on JavaScript chart.js not showing
- Chart.js time scale showing one of the dates wrong
- How to edit style of negative x grid lines on Chart.js?
- Chart.js Doughnut with rounded edges and text centered
- React component wont re-render ChartJS chart with redux props
- ChartJS is not rendered
- Accessing a slice of a react-chartjs Pie chart
- Problem in passing values using props in react.js while using chart.js
- Chart.js bubble chart changing dataset labels
- How to draw a chart like below using chart js
- Line chart with large number of labels on X axis
- line chart with {x, y} point data displays only 2 values
- Chart.js v2: How to make tooltips always appear on line chart?
- How to use an Aurelia JSPM plugin with WebPack
- How to add on click event to chart js
- Dates not displaying on X Axis using Chart.Js on MVC 5