score:8
Accepted answer
You should look at this: http://api.highcharts.com/highcharts#series.data
If you specify each point as an object, you can add any property you want to each point and access it in your tooltip formatter through this.point.
With the data as currently formatted
var seriesArr = [];
$.each(jdata, function(key, data) {
var series = {name : key, data : []};
$.each(data.y, function(index, value) {
series.data.push({y: value });
});
$.each(data.n, function(index, value) {
series.data[index].n = value;
});
seriesArr.push(series);
});
This should yield :
seriesArr : [{
name : 'Total',
data : [
{y:9.39, n:9.62},
...
]
},
...
]
Then in your formatter function, you can acccess each as this.point.y or this.point.n
tooltip: {
formatter: function () {
return 'Y value is : ' + this.point.y + '<br>' + 'N value is : ' + this.point.n;
}
},
Source: stackoverflow.com
Related Query
- Highcharts with JSON data and multiple series
- Highcharts show the same yAxis start and end value with multiple data series
- Loading json data to highcharts with multiple series
- How to have multiple highcharts with different series data in vuejs without repeating code
- Highcharts data series issue with ajax/json and PHP
- Highcharts - Global configuration with common code and unique data & Headings
- Highcharts not displaying series data for graph with multiple Y-axes
- Highcharts with ajax and json data what am i doing wrong?
- Change chart type and redraw with multiple series in Highcharts
- Highcharts shared tooltip between charts with multiple series and shared tooltip
- Highcharts - how to create multiple y axis and group the data series
- Retrieving JSON data for Highcharts with multiple series?
- Charts using Highcharts with multiple series from JSON
- Strange behavior with highcharts when using "column" type and multiple datetime series
- Highcharts with multiple series from JSON Dynamically
- Multiple data series and multiple data tooltip with HighMaps
- Highcharts with JSON to customize multiple series
- Highcharts with multiple series from JSON
- Extract data series from a JSON array for a Highcharts chart with 2 y-axis
- Highcharts single horizontal stacked bar chart with data names (labels) and %-ages always shown and data numbers and series name shown on mousehover
- Highcharts series visibility with csv data source
- Highcharts : using same div to load a chart multiple times with different series data
- Highcharts multiple series with missing Data Points
- HighCharts BoxPlot With Multiple Series Having Single Data
- Adding multiple dynamic series and axes via JSON into Highcharts
- Highcharts: create multiple series grouped my month and year using JSON data
- How to make multiple Y-axis with incoming series of data from database using Highcharts
- Highcharts hover delay and not rendering with multiple series
- highchart bar using json with series and xAxis data
- Highcharts multiple series from JSON with different style depending on serie name
More Query from same tag
- why HighChart is not visible in asp.net
- Highcharts - hide dataLabels leaders
- How to render image on Yaxis in highcharts
- Highcharts-Angular not working with Angular Universal
- Highstock smooth panning
- Stacked bars chart not rendering on mobile
- R - leaflet - highcharter tooltip (label)
- Highcharts addSeries not showing line
- stacked bar chart shows hanging zeros when all values are 0 highcharts
- How to truncate value in tooltip using highcharts
- How to programatically (Python) scrape streaming live stock chart ticker data and its indicators
- Multiple series highstock live chart not showing properly
- Only show integer steps on axis
- How to add text verticaly and horizantaly centered inside highchart solid gauge
- Highcharts navigator not working with data set
- Highcharts Heatmap colorAxis min 0 Max 1
- Using Bootstrap Datepicker with Highcharts
- How to get the data labels below the xAxis in a column graph
- Pass event from overlayed div to Highmaps
- Make a text box appear on dragging point in highchart or an editable tooltip
- Highcharts fadeIn produces plots larger than containers
- How to make Highstock rangeselector buttons load new data?
- Generate image in a folder from Highchart in PHP
- How to create pie chart with only 1 series data and have background be a circle
- Highlight slice of a pie chart in highcarts
- Highstock is only showing series when user zooms in
- Highcharts - Multiple Y axis
- Series Data in HighChart
- How to handle Highcharts events from an AngularJS directive?
- Highcharts series name with '<' not rendered in tooltip