score:1
Accepted answer
i think that you only need to assign the reference of the vue instance to a variable and then use it in formatter function. remember also to add a reference to the computed property.
demo: https://codesandbox.io/s/highcharts-vue-test-forked-c7pvw?file=/src/components/stockvue.vue
score:0
assign the reference of the vue instance to a variable that worked for me.
export default {
name: "stockvue",
method: {
exporttooltipdata(data){
console.log(data)
}
},
computed: {
stockoptions() {
const exportfn = this.exporttooltipdata;
return {
...,
tooltip: {
shared: true,
formatter(){
exportfn(this);
retuen `
open: ${this.points[0].point.open}
`
}
}
}
}
}
}
Source: stackoverflow.com
Related Query
- How to access Highcharts stock tooltip data in Vue?
- How to hide one series data info in tooltip using highcharts
- How to edit tooltip in Highcharts C# code
- how to use highcharts tooltip formatter in python code
- Highcharts Tooltip - Access "z" value in series data array
- How to show values in Highcharts tooltip other than x and y when data points are too high?
- How can i access data from series in tooltip
- Highcharts - how to access category of multiple axis of the point from tooltip
- How to have multiple highcharts with different series data in vuejs without repeating code
- How to display tooltip data below x-axis category labels using Highcharts
- how do i link my sqlite(PDO) databse data to highcharts code
- How to force tooltip to show in multiple graphs in highcharts with Vue 3?
- how to insert data in the tooltip of a highcharts chart?
- How to display extra data in highcharts bubble chart tooltip with datetime x-axis
- How to get multiple series data in tooltip highcharts (Without loosing tooltip pointer arrow)
- highcharts tooltip formatter: how to access adjacent points
- How to display custom or non-series data array on Highcharts tooltip on hover?
- How to bind dynamic data in highcharts Tooltip
- How can I get access to a Highcharts chart through a DOM-Container?
- How to make highcharts default to 0 for missing data
- How to show No Data Available Message in highcharts
- How to get multiple series data in tooltip highcharts?
- How to display No Data Available Message in highcharts
- Highcharts How to Show Loading Animation At Set Data
- How do I dynamically change a data point in Highcharts using JavaScript
- Highcharts - How to display legend symbol inside the tooltip
- how to set dynamic data in highcharts
- Highcharts how to remove headers from tooltip
- Highcharts - How to hide series name and Y value in tooltip
- How to pass json data to highcharts series?
More Query from same tag
- Highcharts - Change opacity of chart when tooltip is shown
- Legend for x-axis categories in highcharts
- Add image in highcharts labels
- Highcharts - show every other x-axis category
- how can I move yAxis labels from Right of chart to left of chart in highstock
- highchart hide xaxis categories
- Is there a way to increase the sensitivity of a specific point, in the purpose of showing a tooltip?
- Custom hover / tooltip data on highcharts network chart
- Highcharts cloud issue with data source when duplicating chart
- Unhandled promise rejection mongoose aggregate
- Passing JSONArray to JQuery outputs Object
- Highcharts skip columns when plotting
- Legend on bottom with highcharts
- Refresh (or change) background image dynamically
- Highcharts put null values at maximum y position?
- Convert datetime to timestamp milliseconds adding +1 month
- Multidimensional JSON to javascript array for highcharts
- HighCharts: How to format particular label column?
- Highcharts: set regular intervals on xaxis
- Highcharts Gantt milestone series
- Highcharts MapBubble - Is it possible to load the data by using the data module?
- How to increase width between two bar in highcharts.js
- Placing labels inside pie chart slices (Highchart)
- AJAX displaying values from two different functions in a single Highcharts chart instead of two different ones
- Retain Parent DataLabel in Treemap Highcharts
- Trouble finding the correct crs value for bubble map on custom highmaps GeoJSON file
- Using HighCharts with Lambda Expression
- How to create a Jquery array object
- How can I prevent my HighChart bar chart from being inverted?
- Highchart: Tickmark placement for datetime axis