score:0
Accepted answer
I was able to do this by updating the tick settings for each axis:
public scatterChartOptions = {
...
scales: {
xAxes: [{
ticks: {
min : - 130,
max : 130
}
}],
yAxes: [{
ticks: {
min : - 130,
max : 130
}
}]
}
}
Source: stackoverflow.com
Related Query
- How can I make my chart's axes use the same proportions for scaling?
- How can I load multiple Chartjs charts with different data on the same page?
- 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?
- How to make multiple stacked charts to share the same yAxis?
- How do I make many ChartJS charts on the same page to have the same height and also even column width?
- How to make bar chart animation where all bars grow at the same speed?
- How can I datalabels and Sum display in the same time on a stacked bar
- Chart is too big. How can I reduce size for the chart in vue js?
- How to use chartjs-plugin-datalabels for specific charts using vue-chart.js
- Is there any way to use 2 different color for the same bar in a chart?
- How to use same data / labels on two y axes in Chart.js
- how can i send a list of numbers from views.py to a chartjs file im using for the front?
- How can I set the yAxis scale for the chart?
- How to use set the color for each bar in a bar chart using chartjs?
- How can I have different values for the chart and the tooltip in chart.js?
- Chart.JS: How can I only display data labels when the bar width is big enough for the text?
- how can i add value on bar in the charts in chart.js vs 3.x
- How can I use an array of {x,y} objects to make a chart?
- How to make bootstrap 4 column height the same as row height
- Chart.JS: How can I only display data labels when the doughnut size is big enough for the text?
- How we can set our own colors for each label in charts
- How I can increase the number of colors for bar labels in ChartJS?
- Two charts using same options, but I need different titles for the charts
- Charts js - How to make gridlines dash and How to make the gridlines stop at each point
- 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 can I make my charts dynamic every time I choose an item from my dropdown?
- How can I give the automatically generated y-axis values on bar charts in Chart.JS commas?
- How I can add the predict data and the actual data in the same graph with ChartJS?
- How to render multiple Chart.JS charts on the same page with AJAX data and variables
- I need a PHP query to grab data from the database and use in my bar charts for results
More Query from same tag
- ChartJs 3.x: ResizeObserver is not a constructor
- How to change bar color acording to label value in chartjs
- Remove the label and show only value in tooltips of a bar chart
- Chartjs does not show annotations when x axis is of type time
- Change the color of the legend box and the color of the x grid lines in chart.js
- ChartJs title not showing
- Why is Chart js first bar too small or not showing at all?
- Javascript OnChange to update data
- Chart.js line graph-removing labels on the line
- Display data at ends of floating bar graph (created using chart js)
- ChartJS not rendering after update
- Chart.js: Display Custom Tooltips, always visible on stacked bar-chart
- Chart.js Box Annotations Fill Entire Chart
- Charts in Angular js with JSON Object
- Chart.js doesn't show chart while on flask blueprint
- chart.js custom legend - make legend items clickable to select/deselect data
- Making angular-chartjs responsive with UI-Grid
- Chart.js draw y-axis only up to point
- Chart.js Tooltips customization
- Line chart is showing under bar in combochart in chartjs
- how can conditionally show/hide gridlines on the yAxis using Chart.js?
- Javascript array not initialized
- How to extend chartjs line charts in ReactJS to show solid and dashed line together?
- Different sizes of data in Chart.js
- How to make a chart with an associative array with chart.js?
- Access yLabel for specific bar in chartJs without click
- Chart.js beginAtZero doesn't work
- Is it possible to fill particular portion between given start & end angle in pie chart in chart.js?
- Json data visualization in Javascript with chartjs
- How to add comma in this chart js