score:2
You can simply use $.get() or $.getJSON() method and in URL add parameter, for example:
$.getJSON('http://www.yourdomain.com/getpie.php?index=' + window.index, function(data) {
//create new chart with data from response
});
Then in your getpie.php you have access to this variable via:
$clickedindex = $_GET['index'];
The same way works it for Highcharts example lazy-loading and PHP file you can find here.
Source: stackoverflow.com
Related Articles
- Use of DotNet HighCharts dll to make charts in code behind
- HTML table as data source for highstock charts using highcharts
- Is it possible to combine two column charts in a single Highcharts chart?
- Is it possible to combine mutiple charts with one navigator in highcharts stock?
- Why code of Horizonal line(y-axis) on a single in Highcharts get applied to all other charts integrated with Webdatarocks
- Maximum bar width in Highcharts column charts
- Highcharts - Hidden charts don't get re-size properly
- Highcharts charts don't resize properly on window resize
- Highcharts Error #16: charts not showing on the same page
- Highcharts does not resize charts inside tabs
- Highcharts Pie charts get the selected pie id
- Enable or disable data labels shown in pie charts in Highcharts on click of a button
- Adding a series dynamically with HighCharts Stock Charts
- Drill down function in highcharts in case of line charts
- Highcharts - multiple charts
- Tooltips getting cutoff in pie charts in highcharts
- Highcharts Synchronized charts display tooltip
- Highcharts Sync charts horizontally
- Highcharts pie charts can have url links
- Highcharts tootip for stacked bar charts
- Hiding label guidelines on Highcharts pie charts
- Using PhantomJS to create HighCharts grahps server side for use in PDF creation (PHP) - results in exit code 11 from PHPs exec();
- Highcharts - Global configuration with common code and unique data & Headings
- How to plot line in highcharts on charts click event?
- Toggle between charts using highcharts
- drilldown maps and funnell charts on the same page using highcharts
- Highcharts export charts as image on serverside with php
- HighCharts is slow to load data when building multiple charts
- Highcharts legend symbol sizes for scatter charts
- Charts on rails 3 using highcharts
- different tooltip than x-axis category text - highcharts
- Highcharts separate categories
- How to make a square chart?
- Programmatically display Highstocks legend
- conflict between twitter-bootstrap and HighCharts plugin
- Is there any option in Highcharts for simplifyng a line graph?
- Highcharts.js legend items align
- highcharts dynamic use of plugin grouped_categories
- How is the proper way to use HighCharts with StencilJS?
- Highcharts xAxis Categories not Dsiplaying Properly
- Highcharts assign colors to series after using csvURL
- Highcharts event redraw/load with reflow, and Angular
- How do I pass in parameters to the Highcharts pointFormatter callback function
- Highchart.js: use bootstrap glyphicons instead of symbols on contextbutton
- HeighCharts SVG Keep font-size fix
- Highchart / Highstock how to set color of individual ohlc or candle?
- Highchart: Tickmark placement for datetime axis
- Entire Highchart API calling from JSON file
- Highcharts: dynamically change the tooltip formatter?
- Can I enable scrollbar for datetime x axis in Highcharts columnrange chart