score:1
Accepted answer
the key is to have a tooltip formatter function that returns just this.x + ', ' + this.y
.
see the tooltip documentation for reference. demo below.
highcharts.chart('container', {
xaxis: {
min: -0.5,
max: 5.5
},
yaxis: {
min: 0
},
title: {
text: 'scatter plot with regression line'
},
series: [{
type: 'line',
name: 'regression line',
data: [[0, 1.11], [5, 4.51]],
marker: {
enabled: false
},
states: {
hover: {
linewidth: 0
}
},
enablemousetracking: false
}, {
type: 'scatter',
name: 'observations',
data: [1, 1.5, 2.8, 3.5, 3.9, 4.2],
marker: {
radius: 4
}
}],
tooltip: {
formatter: function() {
return this.x + ', ' + this.y;
}
},
});
<html>
<body>
<script src="https://code.highcharts.com/highcharts.js"></script>
<div id="container"></div>
</body>
</html>
Source: stackoverflow.com
Related Query
- How to hide series name from tooltip in Highcharts scatter plots for linear regression
- Highcharts - How to hide series name and Y value in tooltip
- How to hide Series Name in HighCharts Tooltip when using pointFormatter
- HighCharts Hide Series Name from the Legend
- How can I hide series from a HighCharts legend?
- How can I hide a series from initially being displayed in Highcharts
- Highcharts shared tooltip for line series and scatter plot not working
- How to hide one series data info in tooltip using highcharts
- How do I hide a Highcharts series from the chart, but always show it in the tooltip?
- Highcharts - How to make a scatter plot with multiple series from HTML table
- How can I apply different background color to entire tooltip for different series in highcharts
- how to give different names on tooltip for one series in highcharts R
- Highcharts Highstock How do I change the label on top of tooltip for OHLC series data?
- How to set tooltip border color from series in Highcharts
- HighCharts - how to customize the tooltip for dynamically added series
- How to render highcharts from external json for multiple series
- How to find series name in Highcharts for mouseOut-event?
- How to display highchart series line marker symbol from tooltip formatter?
- Display tooltip for invisible series in Highcharts
- How can i hide all the Series in highcharts at a time
- Highcharts - How to set custom colors for the series
- Highcharts how to remove headers from tooltip
- How can I delete all of the points from a highcharts series
- Using PhantomJS to create HighCharts grahps server side for use in PDF creation (PHP) - results in exit code 11 from PHPs exec();
- Highcharts JS- add third variable to tooltip for two series
- How to show 0 for incomplete Series in Highcharts
- Highcharts - Tooltip and series name are out of their boxes in chrome
- How to remove a series in Highcharts by name
- How to get the highlighted point from shared tooltip formatter, Highcharts
- Highcharts - how to set custom content in point tooltip (popup) on 3D scatter chart or how to customize point tooltip information?
More Query from same tag
- Showing multiple Tooltips in highcharts simultaneously
- Highstocks period scroll not working with jQuery tabs in IE
- How to put data in Highchart from session storage?
- How to create data in Json format for highcharts
- Highcharts and JSON
- Reading From HTML5 localstorage json, not recognizing in highcharts-ng
- iScroll 4 and highcharts compatibility issue
- Highchart Annotation Scroll
- how to disable the color change on mousehover in sankeycharts Highchart . { hover: {color: '#a4edba',opacity: 1,filter: {type: 'none',}}} didnt work
- How to add hyperlink to each part of high-chart's stacked bar chart in php
- Highcharts xAxis multiple colors
- Display threshold line even if threshold value is higher than max y-axis value in HighStock
- How to use high charts in Angular?
- Changinx Bar Charts X position on Highcharts
- Updating column zIndex on legendItem mouseover/mouseout in Highcharts
- Display only groups in Highcharter
- AngularJS : link between directive and controller
- Highmaps Flight Routes add arrows
- Highcharts - How to set a gradient theme for each type of graph globally?
- last label in x axis with datetime format not coming in highchart
- highcharts-export-server with highcharts-regression plugin in a node module throws an error
- Setting xAxis.min breaks area display in two-point highcharts
- how to customize heatmap highcharts plot area and the color of the datalabels
- Export data from highcharts in csv file with dates in milliseconds
- How to convert an object array DataTable recognizes to something Highcharts recognizes?
- Use the "step" label option in Highcharts, starting at the end of the xaxis
- how to create a horizontal video viewing "heatmap" using Highcharts
- highcharts - chart names for multiple pie chart series in one chart
- how to make barchart from date 1 until 31 with different value?
- Does it support 3D pie chart?