score:4
Accepted answer
You could use a combination chart. Use columns for the actual grades, and plot a line chart over the top for the passing grades.
$('#container').highcharts({
title: {
text: 'Exam Scores'
},
xAxis: {
categories: ['Test 1', 'Test 2', 'Test 3', 'Test 4', 'Test 5']
},
series: [{
type: 'column',
name: 'Marks',
data: [83, 72, 71, 63, 74]
}, {
type: 'line',
name: 'Pass Mark',
data: [75, 79, 63, 70, 80],
marker: {
lineWidth: 2,
lineColor: Highcharts.getOptions().colors[3],
fillColor: 'white'
}
}]
});
If you don't like the line, you could use 'scatter' instead.
{
type: 'scatter',
name: 'Pass Mark',
data: [75, 79, 63, 70, 80],
marker: {
symbol:'triangle'
}
Note, you can supply your own image for the symbol if you don't like triangles.
score:5
You can use the technique that I have used to create bullet charts, by extending the Highcharts marker symbols to include vertical and horizontal lines.
Highcharts.Renderer.prototype.symbols.vline = function(x, y, width, height) {
return ['M',x ,y + width / 2,'L',x+height,y + width / 2];
};
Highcharts.Renderer.prototype.symbols.hline = function(x, y, width, height) {
return ['M',x ,y + height / 2,'L',x+width,y + width / 2];
};
Example usage:
Source: stackoverflow.com
Related Query
- I want to add a line to each column in a Highcharts column chart
- I want to add a line from each part in column in a Highcharts stacked column chart
- How to add a horizontal line in Column bar chart in Highcharts plugin?
- Highcharts add single line to column chart
- Add a line on each bar for stacked and grouped column in HighCharts
- Add line to 3d column chart in Highcharts
- How to add a line at the bottom of a column chart in highcharts
- HighCharts Pie Chart - Add text inside each slice
- Add dynamic data to line chart from mysql database with highcharts
- Color each point individually in column chart highcharts
- Add custom buttons in Angular Highcharts Line Chart
- Highcharts column + line combination chart with multiple series. Issue aligning line over the column
- Legend for each point in column chart in highcharts
- Get the end points of each bar in a highcharts column chart
- Highcharts add point to line chart with json
- how to add new index Highcharts column drilldown chart
- How to add different click events on each pie of a pie chart created by highcharts usin jquery
- Highcharts add a Mean line to BoxPlot chart
- Align X-Axis label on a straight line in Highcharts Column Chart
- highcharts column chart with line, need line start at bar start
- how to add above each column a different pie chart
- highcharts 3, line on column chart
- Creating a drilldown chart with Highcharts that contain double(multiple) columns for each column (see example for better explanation)
- Add new series to the top of a highcharts stacked column chart
- Highcharts - Add a pie chart to a line chart
- How to reference yData from another series in each category of a highcharts column chart
- How to add table on click over each column in Highcharts Reactjs?
- Line and column combo chart with multiple columns for each category, how to position line marker for each category on a specific column?
- How to add different series data for each categories in Stacked Column chart in Highcharts?
- Highcharts - Column chart with legend for each data
More Query from same tag
- Two columns with two legend items in highchars.js
- How to make the selection of individual series dynamic in highcharts even after setting max and min?
- How do you remove an annotation from Highcharts?
- How to populate a Highchart graph with Angular
- data from AJAX json request not loading in HighChart
- Difference in rendered SVG fetched from FirefoxDriver and HtmlUnitDriver
- Unable to update plot border width in highcharts chart
- Line Chart Highcharts
- Highcharts: Is it possible to show Sunburst legend similar to Pie chart legend?
- XY trajectory plot using Highcharts
- How to display extra data in highcharts bubble chart tooltip with datetime x-axis
- Highcharts not aligning to ticks
- Redraw same highchart
- Append the data values in Highcharts
- Highcharts polar chart not connecting lines properly
- How to add data labels for highchart?
- Dynamic xAxis Highcharts
- Proper way to remove all series data from a highcharts chart?
- How to convert php array into javascript array for Highchart JS
- Formatting PHP/MySQL data in correct JSON format for HighCharts
- HighMaps with drilledDown
- Highcharts tooltip not showing on unsort data
- Highcharts - position column chart from the top
- Custom field name in ECharts
- How to assign .POST return value to a variable
- Spline graph not showing in highchart
- Missed colors in Highcharts donut chart rendering
- Customize Stacked column chart in highChart
- How to align lines marker in middle/centre of the bars - High Charts
- Highcharts not "graphing" in Firefox or Safari