score:1
The correct answer is the following for version 2.8:
options: {
scales: {
xAxes: [{
ticks: {
padding: 100
}
}],
}
}
score:2
Pass value to 'tickMarkLength' in options--> scales--> xAxes--> gridLines
xAxes: [{
gridLines: {
tickMarkLength: 10
},
score:10
Late to the game here, but the solution with latest Chart.js is to include this in your options
parameter:
{
scales: {
xAxes: [
{
ticks: {
padding: 20
}
}
]
}
}
Source: stackoverflow.com
Related Query
- How to add padding to the vertical scale (X-axis) in Chart.js?
- How to add custom text inside the bar and how to reduce the step size in y axis in chart js( Bar chart )
- How to Add X axis Padding in chart js Line Graph
- How to add text inside the doughnut chart using Chart.js?
- How to add text in centre of the doughnut chart using Chart.js?
- How do I change the 'months' language displayed on the date axis in Chart JS?
- How to hide the y axis and x axis line and label in my bar chart for chart.js
- How to start the line graph from the left Y axis in a line/bar mixed chart (Chart.js)?
- How can I add some text in the middle of a half doughnut chart in Chart.JS?
- How to draw a needle on a custom donut chart and add datapoints to the needle?
- In Stacked horizontal bar chart how to remove the vertical line in Chart.js?
- How do I add time sourced from an external source as an X axis to a ChartJS graph?
- How do I add padding on the right of tooltip, but not the left in Chart.js?
- How can I add a unit to the end of my Y Axis values in ChartJS?
- How to add text inside the doughnut chart using Chart.js version 3.2.1
- chart.js: How do I make the radar chart axis labels bigger?
- How to add new x axis in chart JS?
- How to show tooltip value of all data falling on the same axis in chart js?
- How to create a graph where the vertical axis (Y-axis) is a string?
- How add the sizes of the slices in the pie chart (at the top) in Chart.js?
- How to add space to the bottom of the chart in chartjs [angular]
- How to add labels on top of the chart bar with Chart.js 2
- How to add text inside the doughnut chart using Chart.js AngularJS 2.0?
- How to add left padding for my charts done in ChartJs and my Google Map so it is not glued to the limit of the page on the left
- How to remove the extra Y axis from a bar chart in chart.js
- How to add image inside the doughnut chart using chart.js?
- How to add a vertical line on the end of the chart.js scatter graph
- How do remove the bottom scale on a Chart.js bar chart
- 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
- How to make Chart JS ignore the scale between DatasSets
More Query from same tag
- Generate PDF from HTML page made with Bootstrap and ChartJS in Laravel
- Exporting chart.js charts to svg using canvas2svg.js
- Changing fontFamily on ChartJS bar chart
- Chart.js - combine data and label into a single object
- subcategories for each bar in multibar chart using chartjs
- ChartJS changing displayed data based on dropdown selection
- Is it possible to make chartjs charts scrollable?
- Chart.js line split color
- Issue while plotting bar chart with custom x-axis with month and year in chart.js
- Access yLabel for specific bar in chartJs without click
- How to Find the Sum of items Per Year Using Chart Js
- DiscordAPIError: Invalid Form Body embed.image.url: Scheme "[object response]" is not supported. Scheme must be one of ('http', 'https')
- Chart.js: Create custom major ticks on log x-Axis?
- how to highlight the bars in stacked bar chart of chart.js on clicking a legend
- It is possible to always show all tooltip in Chartjs 3.1
- ChartJS 3.7 data not dynamically updating with data streaming into CSV
- How to increase size and family in a radar's Chartjs label
- Combo Bar Line Chart with Chart.js
- Can we use EJS tags with ChartsJS?
- Chart.js not working after Django deployment on Heroku
- Line graph - ChartJS
- Chart.js Doughnut Chart Sizing
- How do I implement Laravel Analytics with Chart.js
- Chart js Datalabels styling
- How can I achieve something like this image with chart.js(react-chartjs-2)?
- How to add external scripts and css in latest angular-cli
- Select missing dates from a table in MySQL
- Chart.js color is not getting changed
- Chart.js label and point getting cutoff on the right
- How to create range based ticks in chart js? (like in attached image)