score:1
I think you just can set a range for the second y-axis, like this: Maybe set a value with relation to your first y-axis --> suggestedMin - suggestedMax
options: {
scales: {
yAxes: [{
ticks: {
suggestedMin: 50,
suggestedMax: 100
}
}]
}
}
In the first y-axis you can access the values of y-axis by the callback-function see below:
yAxes : [{
ticks : {
beginAtZero : true,
**callback** : function(value,index,values){
yAxesticks = values;
return value;
}
}
}]
The first value in the array should be the highest one.
Source: stackoverflow.com
Related Query
- chart js - bar chart with time scale on Y axis in Hours and Minutes
- Chart.js - Scale of secondary Y axis
- 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
- In Chart.js set chart title, name of x axis and y axis?
- ChartJS New Lines '\n' in X axis Labels or Displaying More Information Around Chart or Tooltip with ChartJS V2
- How to prevent first/last bars from being cut off in a chart with time scale
- Chart Js change text label orientation on Ox axis
- chartjs : how to set custom scale in bar chart
- Chartjs 2 - Stacked bar and unstacked line on same chart with same y axis
- show label in tooltip but not in x axis for chartjs line chart
- How to assign a logarithmic scale to y axis in chart.js?
- Chart Js Negative Scale
- Chart JS - set start of week for x axis time series
- chart.js not allowing y axis steps with logarithmic scale
- Show X axis on top and bottom in line chart rendered with Chart.js 2.4.0
- Chart.js Dynamically Updating Chart with X Axis Time
- How do I change the 'months' language displayed on the date axis in Chart JS?
- Obtain max value of y axis of line chart rendered with Chart.js
- Changing x axis labels in Chart.js line chart
- Line chart with large number of labels on X axis
- Category scale on Y-axis and time on x-axis in bubble chart in Chartjs
- chart.js switch x/y axis on line chart
- How to hide the y axis and x axis line and label in my bar chart for chart.js
- Chart js different background for y axis
- Map event position to y axis value in chartjs line chart
- set y-axis scale manually in a bar chart using angular-chart.js
- Show all values in Chart js y axis
- Chart Js, Style some ticks on the axis differently
- Maintain Y axis scale in graph with scroll in the X axis when the dataset grows bigger. Aspect-ratio problem
- impossible to remove scale from radar chart (chart.js)
More Query from same tag
- Multiple axis line chart with Chart.js and JSON data from Google Sheet
- Is it possible to make points in a line chart of Chart JS 3.7.0 look like a donut?
- Chart.js render two charts on one page.
- How do you set x and y axis and Title for a line chart using charts.js?
- Chartjs - Tooltip with Rupee Symbol
- Dynamically created Chart.js chart overpopulating time based x-axis?
- chartJSRadar downloadhandler creating empty png
- Create a line chart using an user input table from a data table in chart.js
- Handle X-axis label position in chart js
- ChartJS date formating
- How to show slice value inside of slice in pie chart using chart.js
- Chart JS: Use function in tooltip template
- Complex Javascript variables containing the values of other assigned variables?
- charts.js - custom event using tooltip data (line chart)
- Vertical align bar chart from chart.js not working
- Why my ChartJs only Coloring one section?
- Chart.js v3.x time series on x axis
- Chart.Js radar - hide label numbers
- How to make data always visible on bars Chart.js
- How to call a typescript arrow function and a javascript function in the same event
- Adding Chart.js line chart to Jinja2/Flask html page from JS file
- getting additional value fields from data source for dx.chartjs doughnut chart
- "Responsive" Chart.js chart is taller than the containing window
- How to fetch data from DB on Chart.js using Laravel?
- Add data to line chart js dynamically with multiple lines
- How to inject “Chart.js” to my module?
- chart js showing different width of bar
- How can I add background color of length bars in chart (chartJS)?
- How to display small numbers in chart js tooltip?
- Chart JS show multiple data points for the same label