Question
How can i get access to a highcharts chart through a dom-container?

Answers

Users can use the highcharts plugin
var chart=$("#container").highcharts();Highcharts 2.3.4
Read from the Highcharts.charts array, for version 2.3.4 and later, the index of the chart can be found from the data on the div
 var index=$("#container").data('highchartsChart'); var chart=Highcharts.charts[index];All versionsTrack charts in a global objec/map by container idvar window.charts={}; function foo(){  new Highcharts.Chart({...},function(chart){        window.charts[chart.options.chart.renderTo] = chart;  });}function bar(){  var chart=window.charts["containerId"];}   Your Comment






Search
Can you Answer!!
  • Q Pour some light over Kraft Inequality & Optimality.
  • Q What is standard instances?
  • Q Emperor Akbar's Revenue Minister was?
  • Q Who led `Oorutambalam agitation'?
  • Q Which raga of the Hindustani classical music is sung in the late morning?
  • Q what is one way that plants spread their seeds around?
  • Q Describe how collaborative the work environment is.
  • Q Manyakheta was the capital of which Indian Dynasty?
  • Q How and where do you control the budget for the project & what is the menu path?
  • Q 96. How system calculate the actual cost?..
  • Q What are nosql databases? what are the different types of nosql databases?