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
- Highchart changing crosshair color depending on value of y-axis
- Highcharts Export Service Gantt Chart not working
- remove previous markers and retain only single marker highchart
- Highcharts column chart formatting
- Cannot read property 'type' of undefined highcharts highstock
- Display negative Y values above zero instead below in highcharts
- Highcharts: Logarithmic chart with Y Axis [100, 99.9, 99, 90, 0]
- how to get svg of highcharts using div id?
- Multiple charts in separate divs, single range and zoom picker
- Using render_async to call a partial with highcharts
- How would I convert this array to this json format
- Highcharts Pie chart how to reduce space between chart and legend caused by plot width
- How to customize tooltip in Highchart?
- Right click on specific legend item
- How I can rotate a polar chart?
- asp.net mvc highchart linegraph json
- Highstock reverts to same color for columns
- Plotting using highcharts.js labels are being rendered off-center in stead of being centered
- How can I add a Bar Chart to my Django based Database?
- How to create a canonical 3d plot in Highcharts?
- How remove zero values in a heatmap?
- HighStocks series does not show line on Black Colors
- How do I change speedometer caption style changes in highcharts
- Highcharts - Cross browser charts have different Y axis ranges, how can I ensure consistency?
- How To Show All Data Labels For Datetime Axis In Highcharts
- Highcharts problems: variable legend height
- Reload chart data via JSON with Highcharts
- Ending Series points don't show up on highchart area type chart for large series data
- javascript - Highcharts - Type Bar - How to set different starting for each bar
- Incorrect date on the x-axis