score:59
Figured out a way to do it with the yAxes:
options: {
scales: {
yAxes: [{
ticks: {
padding: 100
}
}],
}
}
No solution so far on the x axis. A workaround to your problem though could be to set a lower min by calculating the min of the data and adding subtracting a increment value:
yAxes: [{
ticks: {
min: -100
}
}],
Both togheter would be something like this: https://jsfiddle.net/u9b0nmp8/1/
Update #1: X-axis suggestion
Update #2: improved alternative to the x-Axis based on https://stackoverflow.com/a/38620312/6638478
Update #3: version 2.7 and up now supports padding on both y and x axis. Example: https://jsfiddle.net/u9b0nmp8/207/
Source: stackoverflow.com
Related Query
- Chart.js add padding to scales
- Add Padding Right to Extended Line Chart in Chart.js V2
- How to Add X axis Padding in chart js Line Graph
- Add padding between two y-axis scales using chart.js
- How to add text inside the doughnut chart using Chart.js?
- How to add an on click event to my Line chart using Chart.js
- Add DataSet Bar Chart - Chart.JS
- How to add an offset to a dataset in Chart js
- ChartJS add tooltip to a grouped bar chart
- How to add second Y-axis for Bar and Line chart in Chart.js?
- How to add text in centre of the doughnut chart using Chart.js?
- Chart.js Mixed Bar and Line chart with different scales
- Chart.js v2.6: Add arrows to pie chart output values
- Is it possible to add a custom font to chart js?
- How to add datas to chart js from javascript array itself?
- Chart.js - Add gradient to bar chart
- chartjs - top and bottom padding of a chart area
- How to add panning to chart in chartjs?
- Add all data in the tooltip of Chart JS
- Chart.js - Add text/label to bubble chart elements without using tooltips?
- How to add padding to the vertical scale (X-axis) in Chart.js?
- how to add a title to my ng2-charts bar chart
- Add chart using chart.js in codeigniter
- Increase padding between legend and chart with react-chartjs-2
- How to add comma in this chart js
- How to add gradient background to Line Chart [vue-chart.js]
- Add a custom label to the top or bottom of a stacked bar chart
- Add beforeDraw callback on chart JS v3
- How can I add some text in the middle of a half doughnut chart in Chart.JS?
- How to add ChartJS code in Html2Pdf to view image
More Query from same tag
- How can I create a bar chart that has multiple yAxes scales?
- How to set labels align left in Horizontal Bar using chart.js?
- Primevue Chart not rendered
- Redraw Chart.js Chart with Json_encoded array from ajax request
- Chart js - Draw center of each bubbles of a bubble chart
- Real time colored bar chart
- char.js overlapping bar columns when using type: 'time'
- ChartJS time axis not plotting correctly | getting an hour instead of date
- Disable chartJS tool tip on one dataset only
- Is there any way to change the font color and size of labels in Chartjs 3.0.0
- Chart.js: colouring tooltip labels
- How to fit Doughnut Chart JS into Bootstrap column?
- Create a pie chart in chart js with labels
- Reduce space between ticks in horizontal bar-chart chartJS
- ChartJS on NodeJS: error Chart is not defined
- special characters in title of charts of Charts Js
- ChartJS multiple X axis and extra labels in y axis
- Error with Chart.js : TypeError: t is undefined
- How to add colored points with white shadow border in chart.js?
- How to display k as thousand for the values of chart.js - Javascript
- Rails chart.js data coffee script
- Vertical Bar Chart not displaying Correctly
- Update chart axis labels after hover - chart.js
- Angular Chartjs error TS2304: Cannot find name OffscreenCanvasRenderingContext2D
- Height for chart area (not the canvas size)?
- How to show text likt this in Chartjs Dougnet chart
- Remove radar chart labels in chart.js
- Chart.js, set a max value
- Inserting an array in Chart.JS
- Angular-chart copied from example not showing up