score:0
you are doing it wrong. you don't need a loop for that purpose. if you only want one point/data object you can use this
.
looping through points
is for check every points that are vertically aligned (same x
).
on the link for the documentation of the formatter
you have another link that goes here:
you can see the example and i think this is what you are trying to do.
score:4
instead of using shared tooltip, try with default one: http://jsfiddle.net/2v0ya6d5/1/
code:
tooltip: {
formatter: function () {
var series = this.point.series.chart.series, // get all series
index = this.point.series.xdata.indexof(this.point.x), // get index
str = '';
// default tooltip
$.each(series, function(i, s) {
str += 'the value for <b>' + s.data[index].category +
'</b> is <b>' + s.data[index].y + '</b><br>'
});
// "this" refers to the selected point:
str+= 'selected point? x: ' + this.x + ' y: ' + this.y;
return str;
}
},
Source: stackoverflow.com
Related Query
- How to get the highlighted point from shared tooltip formatter, Highcharts
- How to call Highcharts tooltip formatter function from outside the config object?
- Highcharts - how to access category of multiple axis of the point from tooltip
- How to get Highcharts X-Axis Categories starting at the left most point
- How do I get the value of a highcharts graph point on mouseover?
- How to get next point in Highcharts tooltip
- how to use highcharts tooltip formatter in python code
- how to animate the move of a point from a position to another in a HighCharts scatterplot
- Highcharts Bubble Chart - How to get the size of the point
- Highcharts - How can I get the nearest point on click event
- Get Tooltip content from a point from a line/scatter plot in highcharts from javascript
- When using Highcharts, how do you get the point name from a data point series?
- HighCharts - Angular, how to get y axis labels on the vertical lines drawn from x axis
- How to get highcharts dates in the x axis?
- How to use the tooltip formatter and still display chart color (like it does by default)?
- Change Highcharts tooltip formatter from chart Object , after chart is rendered
- How can I remove the white border from HighCharts pie chart?
- Highcharts - How to display legend symbol inside the tooltip
- Highcharts how to remove headers from tooltip
- Highcharts - How to remove connecting line between fixed tooltip and point
- how to get chart object inside a point event function in Highcharts
- How can I delete all of the points from a highcharts series
- Highcharts - how to remove "Open in Highcharts Cloud" from the export menu
- How do I remove the color swatch from my HighCharts legend without affecting the column?
- Highcharts How to get decimal point values on y-axis with big numbers
- Get name of clicked point in Highcharts when the point has drilldown
- Highcharts: How to provide a custom stack label in highcharts bar graph from within the stackLabel formatter?
- How do I hide a Highcharts series from the chart, but always show it in the tooltip?
- How can I get the navigator selection from a Highstock chart?
- How to get the Div id of charts in highcharts on click of it in angular 6
More Query from same tag
- Highstock/Highchart substep maximum?
- Gantt highchart bar alignment issue
- xAxis type: 'category' without stacking duplicate names?
- Structure of objects expected in series data
- About HighCharts
- highcharts spline with multiple series update every few seconds
- change the categories and series in highcharts by select button?
- How to open new chart to the adjacent <div> on bar click in highchart
- Pyramid chart in rCharts with Highcharts
- set left and right margin in highchart
- Highcharts Transition from Column to Spiderweb
- Staged labels for xaxis with zero values
- Highcharts hide not active series from legend when taking screenshot
- How to have data labels on top of the graph?
- Highcharts : compare current value/previous value to get the rate
- React prop gets overwritten when using highcharts?
- HighCharts performance issue and alternative
- highcharts round decimals for gauge labels
- R shiny Highcharts tooltip: adding average as extra variable
- Creating series/group titles in legend in Highcharts JavaScript pie chart
- JSON with irregular x axis highcharts Error 13
- HighCharts Export Hide Scrollbars
- Delay after addpoint when y-axis with opposite: true
- High chart column graph space issue
- How to pass the database data and display it in yii2 highCharts?
- finding the value in the series object and displaying in the tooltip of the high chart using angular 4
- Highchart spline Cut Off when reach to maximum scale value. How can it fixed?. I have attached may sample code on body
- dotnet highchart error, not showing data
- Dynamically change center of a Highchart pie?
- vmware-clarity Type 'ElementRef' is not generic