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 Query
- HighCharts - How to combine JS and SQL for two charts?
- Using connecting legends for two Highcharts pie charts
- how to show column and area charts with different y axis with same category and same x axis in highcharts
- Highcharts how to align two charts yAxis on the same line
- Highcharts - how to get consistent mouseover and mouseout events for columns?
- How to use images for charts in Highcharts
- Highcharts - How do I keep both line points in from splitting between the two bar charts
- Highcharts how to make a set number of colors for pie chart data and drilldown data
- How to make hover effect for two bar in highcharts at the same time is there any way by using css or any inbuilt method to achieve this?
- HTML table as data source for highstock charts using highcharts
- combine and merge two array into set of arrays for Highchart Pie
- Is it possible to combine two column charts in a single Highcharts chart?
- Different ToolTip text For Links and Nodes in Highcharts Sankey Charts
- How to combine highcharts (heatmap) and table (mapping each table row with heatmap row)?
- How do I not show GMT and Timezone labels for Highcharts
- How can I get proper object through loop using javascript for Bubble Charts of Highcharts
- How can I have both years and string-formatted x-axes in two charts in HighCharts?
- Highcharts Highstock How to Plot OHLC and Line Charts from One Set of Embedded CSV Data Using Series Map Tools?
- Highcharts - How to combine unique legend for multi-series pie chart which perform same action for both series? (like onclick: show/hide)
- How to scrape data from Highcharts charts using selenium and python?
- How to change tick and minorTick color in different interval in highcharts gauge charts
- How to combine HighStock stock-chart and HighCharts bubble-chart in React JS?
- How do I get DateTime from mysql and set it to json format ready for highcharts
- HIGHCHARTS How to to make separate colors for shaded region and the line in Area Graph
- Highcharts - how to align two charts on a same line
- Align second scatter series to the side similar to how column and bar charts do using HighCharts
- How to combine Bar chart and data as table in High Charts
- How to Increase minimum point value and the color of series in advanced accessible charts in Highcharts by making it traverse
- Highcharts - How to show two tooltips for single point at different positions of chart?
- How to define format for Drilldown Pie Charts in Highcharts
More Query from same tag
- Highcharts bar and line issue
- Need to generate random data for Highcharts series
- Rshiny Highchart: keeping fixed color for order-changing categories on x axis
- Highcharts - 'setState' after 'mouseOut' event
- Highcharts not rendering
- Highcharts Sync charts vertically
- Convert cumulative chart to non-cumulative using highcharts
- How to set Highcharts chart maximum yAxis value
- how to get svg of highcharts using div id?
- After setting the yAxis max value, some datalabels are not showing
- Highcharts.stockChart Range Selector (zoom) Button Position After the Chart Container
- Highchart donut pie - Is there a max number of slices
- How can I inspect the Highcharts tooltip in the Chrome inspector?
- Highchart label rotation makes my column dissappear
- How to increase the height of highchart?
- How to put multiple HighChart in a page having different series value in different chart
- Ember App Kit: Calling a view gives me Assertion Failed error
- Export Highcharts data in excel with values as a string
- highcharts - zoom issue after changing series data
- Highcharts change look of tooltip
- Button to show all legend items in highcharts
- Correct syntax for highchart API yAxis label style in coffeescript?
- How to debug a non-working AJAX-based HighChart?
- HighStock shows data not presents at specific interval using gap size?
- highcharts Area chart with x and y values?
- How to set xAxis maxRange/minRange for each rangeSelector button separately
- Highcharts tooltip shadow angle
- Highchart heatmap for days in a month from 8:00 to 17:00
- Highcharts - options dump.json
- Need to call an API with min and max X values on Click of rangeselector Buttons