score:2
Accepted answer
you can use iife to store a reference to a component in a higher scope and use 'double' context in a returned function.
example:
events: {
load: (function(component){
return function(){
console.log(this, component); // chart, component
}
})(this)
}
live demo: https://stackblitz.com/edit/highcharts-ecg-pqkkb9
Source: stackoverflow.com
Related Query
- Highcharts load series data problem in Angular
- Get Highcharts Series Data after Load
- Animation behave differently between initial load and dynamic data series replacement in Highcharts
- Adding Classname to series data in angular highcharts
- Highcharts series data not persisting through angular route change
- Highcharts series visibility with csv data source
- Highcharts : using same div to load a chart multiple times with different series data
- How to have multiple highcharts with different series data in vuejs without repeating code
- Angular 5 - Highcharts cannot load data from a HTML table
- HighCharts Angular -Show noData if the data series is empty
- Angular Highcharts Series name in piechart with API data
- Highcharts pie/bar combo. How to load json and how are the data series expressed
- Highcharts data will not load using angular directive
- Highcharts displays series names but missing data points from json source
- Set Additional Data to highcharts series
- Proper way to remove all series data from a highcharts chart?
- Changing data dynamically for a series in Highcharts
- Add additional data to a Highcharts series for use in formatters
- Highcharts doesn't display series with lots of data points
- HighCharts load data via ajax
- Highcharts data series issue with ajax/json and PHP
- Changing Highcharts data series type dynamically
- Load data into Highcharts with Ajax
- Highcharts series data array
- Use an array of objects for series data in Highcharts
- Highcharts how to use JavaScript variable as series data source?
- How to get multiple data series into Highcharts
- Highcharts with JSON data and multiple series
- Highcharts - Provide URL's for series data to open clickable link
- Highcharts Angular with API data
More Query from same tag
- 2 chart HighChart Print to PDF
- Trouble finding the correct crs value for bubble map on custom highmaps GeoJSON file
- HighCharts Axis Formatting in Chrome
- jQuery variable to php variable
- add custom drop down menu in highcharts/highstock
- Highcharts display percentage of hidden series
- Highcharts too slow when plotting 4000 bars (rCharts)
- highcharts Scatter Chart not loading with LOTS of data
- HighChart 'tooltip' object is not found on the very next line in IE8
- Highcharts drilldown - when useing setData chart doesn't stay drilled down
- Get container element inside Highcharts
- How to Populate Highchart using Json Object
- Highcharts problem with xAxis using multiple series
- Move handle of two related highstock charts at same time
- highchart with a specific json format in django
- How to put progress in percentage inside the solidguage of highcarts
- JSON string from SQL Table - Bad values in the chart
- Highcharts adding additional blank series from csv
- Use ajax to draw graph dynamically using Highcharts
- Angular : Filter object data to build a Highchart Widget with distinct elements attributes
- Highchart's x-axis not displaying correct data
- Highcharts - How can I get the nearest point on click event
- dynamically disable animation highcharts javascript
- Highchart multiple axes - How can I add different starting coordinates?
- Automatic fold/unfold Y-axis break on mouse over
- How to load highcharts annotations module in react typescript?
- Hight chart show series data in milliseconds
- multiple pane in highstock has issues with scrollbar
- In highchart how to show y axis values in reverse order
- Highcharts datetime axis overlap with a long time series