score:0
Accepted answer
this is possible with highcharts. you need to only find a common scale, use multiple y-axis and mock labels and tooltip values, for example:
var ylabels = [
[60, 70, 80, 90, 100],
['average', 'satisfactory', 'good', 'excellent', 'outstanding']
];
highcharts.chart('container', {
yaxis: [...],
xaxis: {
linewidth: 0,
tickmarkplacement: 'on',
categories: ['english', 'behaviour', 'physics', 'chemistry', 'biology', 'history']
},
tooltip: {
shared: true,
formatter: function() {
var points = this.points,
returnstr = this.x;
points.foreach(function(point) {
returnstr += (
'<br />' + point.series.name + ': ' + ylabels[point.point.x][point.y - 1]
);
});
return returnstr;
}
},
plotoptions: {
series: {
point: {
events: {
mouseover: function() {
this.series.chart.yaxis[this.x].update({
labels: {
enabled: true
}
});
},
mouseout: function() {
this.series.chart.yaxis[this.x].update({
labels: {
enabled: false
}
}, false);
}
}
}
}
},
...
});
live demo: http://jsfiddle.net/blacklabel/82dyogrp/
api reference:
https://api.highcharts.com/highcharts/pane
Source: stackoverflow.com
Related Query
- ChartJS/High Charts Radar chart - Different radial axis labels for each category that appear on hover
- chartjs custom y axis values, different text for each one
- Chartjs - Add backgroundColor for labels radar chart
- Different color for each bar in a bar chart; ChartJS
- Chartjs random colors for each part of pie chart with data dynamically from database
- ChartJS New Lines '\n' in X axis Labels or Displaying More Information Around Chart or Tooltip with ChartJS V2
- Chart.js Line-Chart with different Labels for each Dataset
- show label in tooltip but not in x axis for chartjs line chart
- chart.js Line chart with different background colors for each section
- Chart.js - Line charts with different colors for each border lines
- Different color for each column in angular-chartjs bar chart
- Can I specify a different font size for each row of text in Chart Title?
- Chart js different background for y axis
- Change labels colors for radar chart js
- chart js - Apply different color for each x-axes label
- Chartjs 3.5.0 - Radar Chart - Converting the labels to images
- Setting Common labels and background color common for all the charts in ChartJs
- Minimum value for x Axis doesn't work for horizontal bar chart | ChartJS
- create different labels for different data chart js
- chart.js: How do I make the radar chart axis labels bigger?
- chart.JS i want to put different color for each Y axis value grid line color
- Chartjs React Typescript moving x axis labels above chart
- Linear x axis for bar chart chartjs
- Issue with chartjs linear gradient for the mixed bar chart in ReactJS is not calculated for each individual Bars
- How do I get a different label for each bar in a bar chart in ChartJS?
- highlightFill for radar charts in chartJS
- Charts JS: Doughnut chart and hiding tooltip for specific data index within each dataset
- ChartJs x axis labels on waterfall chart
- ChartJS Separate Labels for each dataset/independent datasets?
- Set different color for each bars using ChartJS in Angular 4
More Query from same tag
- How to take data from an API and create a chart on that using Chart.js and Angular 8?
- PrimeNg bar chart how to show a label for the y-axis
- Is it possible to add a drop shadow to chart.js line chart?
- Change dot size individually Scatter Chart -- ChartJS
- Setting Chart.js Pie-Graph Options
- Chart.js - Where do I find which components should be registered?
- Dynamically update values of a chartjs2.0 chart
- Scrollable x axis with chart.js 2.1.4
- How to replace data value(js) with a datatable value?
- XMLHTTPRequest Repeating Entries on ChartJS
- Load more historical data in Line charts on panning left
- How to convert Json to Array In javascript for chart.js
- How to make points in chartjs draggable?
- how can i add value on bar in the charts in chart.js vs 3.x
- Adjust length of y-axis using chart.js and bootstrap
- In Chart.js multibar graph, is there a way to highlight a single category?
- How to set axes' step size in Chart.js 2?
- Chart.js tooltip at any point on the chart
- label too long in yAxis with chartJs
- Adding text inside 2 different Doughuts chartjs
- Display legend of grouped data (different colors) in chart
- Overlap chart datasets with different view types in Chart.js
- Chart js: I'm getting the labels crossed on my pieChart and doughnut. Not able to get the chart itself
- Line Chart x-Axis datapoints with Strings
- How can i give the full Legend a background color in chart js?
- Chart.js Radar chart legend label font size doesn't work
- How to change draw order by line property with chart.js
- Expression in data attribute for angular chart.js
- Chart.js line chart display decimal values on Y axis
- How to hide the tick marks of the axis in react-chartjs-2