score:-1
hope this helps you
$(function() {
var final_score = 3.2
$('#container').highcharts({
chart: {
type: 'scatter'
},
title: {
text: 'industry index',
margin: 30,
style: {
fontsize: '14px'
}
},
plotoptions: {
scatter: {
linewidth: 2
},
line: {
marker: {
enabled: false
}
}
},
/*yaxis: {
tickinterval: 1,
},*/
xaxis: {
categories: ['area1','area2','area3','area4']
},
series: [{
name: 'industry benchmark',
data: [
[0.5, 3],
[1.5, 6.9],
[2.5, 9.5],
[3.5, 16.5]
],
type: 'spline'
// fillcolor: 'rgba(252,96,18,0.8)'
}, {
name: 'your organisation',
marker: {
enabled: true,
radius: 6
},
data: [
[final_score, 14.05]
],
type: 'spline'
}]
});
});
#container {
position: relative;
padding-top: 1em;
background: #fff;
}
#xaxis {
position: absolute;
bottom: 7%;
font-size: 14px;
}
#xaxis p {
width: 25%;
padding: 0 5px;
display: inline-block;
text-align: center;
-moz-box-sizing: border-box;
box-sizing: border-box;
vertical-align: top;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
Source: stackoverflow.com
Related Query
- How to add text labels to a numerical x axis in Highcharts
- How to hardcode arbitrary Tick text labels on y axis in highcharts
- how to add annotation text to a Highcharts chart?
- How to add space between chart and axis in highcharts
- How to adjust line-height/ellipses in Highcharts axis labels
- How to position labels for plotbands on y axis in Highcharts
- How to add thousands separator in highcharts tool tip text box
- How To Show All Data Labels For Datetime Axis In Highcharts
- How do i add mouse wheel code in Angular2 highcharts in typescript
- How to handle mouse events on axis labels in highcharts
- HighCharts Bubble Chart: text for axis interval labels
- how to add text in top,left and bottom in funnel highcharts
- How can I add a text link just below the legend box in highcharts
- How to add title of axis in Highcharts
- How to add annotation text to x and y axis in Highcharts?
- How to add labels for highcharts activity gauge for each series
- How to add labels to the end of a highcharts line graph
- How to display months in x axis labels in highcharts
- How to add text on every section edges in funnel highcharts
- How to set point in highcharts when x axis and y axis has data as text values?
- Highcharts : How do i align data labels above the axis in column chart?
- Highcharts programmatically add extra text label to y axis
- HighCharts - Angular, how to get y axis labels on the vertical lines drawn from x axis
- How to get points information when hovering over axis labels in highcharts using custom-events library?
- How to fix formatting of axis labels in Highcharts when surrounding the contents with div?
- How to display full text in data labels in sunburst highcharts
- How do I add dynamic labels in highcharts while using motion plugin?
- How to add Tooltip Functionality to X-axis labels in highcharts
- Highcharts text labels for y-axis
- how to set the interval of points on Y - Axis highcharts
More Query from same tag
- My highchart not showing the correct time on the x-axis
- How to change export button to custom icon in highcharts
- highchart not shown data graph
- Displaying all groups on y-axis in highchats in R
- Highcharts - show decimal places only if needed
- HighChart flags Data load issues
- Navigator series in Highstock (highcharts-ng)
- Highchart to show progress percentages in horizontal bars with real time data?
- how to change color of highcharter candlestick stockchart?
- Reduce gap between plot area and actual chart in highcharts
- Highcharts-browserify desn't work
- Highcharts drilldown doesn't work for 3+ levels
- Dynamic button background change
- Changing yAxis and plotOptions for drilldown
- show custom date on xAxis in highstock lineseries
- Line chart from external csv-file
- Server-side c# and client side javascript with json loading Highcharts gantt chart Task Progress Indicator, need to change Tooltip and Label name
- Looking for a line chart drill down to area chart using Highcharts
- Is it possible to have different colored graphs in a single series in HighCharts?
- Highcharts two date compare
- Change size of legend symbol
- How to fix formatting of axis labels in Highcharts when surrounding the contents with div?
- Highcharts programmatically add extra text label to y axis
- How to change size of bubbles in Highcharts' 3D scatter chart?
- How to capture the hover event in highcharts labels?
- Highchart in ASP MVC page load not working properly
- Why is HighCharts not recognizing my data properly?
- Highcharts > Tooltip > Crosshair: How to set horizontal crosshair to snap to CLOSE in OHLC series?
- Using Highmaps with React
- How to remove Hyper Link in XAxis name in Highcharts?