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
- How to display hovered point value in Highcharts Crosshair
- Highchart angular overflows container
- Fetch Values for Chart using JSON for Database driven Chart (highchart.js)
- How to add value in the tooltip in graph Highcharts?
- In browser conversion of svg to png image (cross browser including IE)
- highcharts not sure how to load data from external json
- Display legend and colorAxis at different positions in Highchart
- Creating an Array of Objects from an Array
- Using css to customise highcharts in Ionic 4
- How to show some empty item in hightcharts?
- Get Legends and color code of a piechart
- HighCharts area graph - show tooltip only on hover of marker
- How does Similarweb create their PDF reports?
- How to change the color of single point in spiderweb chart
- Highcharts - Passing in Color with JSON
- hide a line chart while mouseover in highchart
- High Chart to High Stock
- How to display only one x-axis labels in Highcharts synchronized charts
- Highcharts / Highstock: x-axis dates appear as three dots
- How to get multiple data series into Highcharts
- Converted PHP code that built an array to JS and now highcharts doesn't work - what did I do wrong?
- Highcharts yaxis higher values displayed lower
- highcharts draw datetime a week earlier
- Highcharts not working with jQuery 1.8, any workaround?
- Meteor highchart in modal
- High Chart X Axis to display month and year
- Type Labels on Stacked and grouped column - Highcharts
- Highstock - display number of week
- Unable to perform xAxis[0].setCategories & series[0].setData
- removes spaces while adding custom line in highcharts