score:2
Accepted answer
If you want to post data to your server you can use the jquery post method :
drop: function() {
$('#drop').html(
'In <b>' + this.series.name + '</b>, <b>' +
this.category + '</b> was set to <b>' +
Highcharts.numberFormat(this.y, 2) + '</b>'
);
$.post("updateFile.php", { ypos: this.y , xpos: this.x} ); // like this
}`
UPDATE:
After, you just have to update your file in the updateFile.php page. You can access your data with PHP like this $_POST['ypos']
or $_POST['xpos']
For example if you want to write the new positions in an CSV file :
<?php
// 1 : open the file
$myfile = fopen('myfile.csv', 'a+');
// 2 : write at the end of the file
fputs($myfile, $_POST['ypos'] . "; " . $_POST['xpos'] . "\n");
// 3 : when we have done, we close the file
fclose($myfile);
?>
Source: stackoverflow.com
Related Query
- Update Series Array on HighChart after editing the chart
- Update Series Array on HighChart after editing chart
- How can I extend the lines of this Highchart series to the edges of my chart area?
- How to use add series and update methods in the high chart wrapper for angular?
- trying to dynamically update Highchart column chart but series undefined
- Why is the legend of my HighChart PieChart behaving irradically, when I update my series data?
- Highchart Line chart – data series with multiple axis - 2nd series placed in the middle of X axis
- Is it possible to show the chart if the value of array bracket is null or empty in the HighChart
- How to change the series color and mark after I draw the line chart in highcharts?Does it has databound event?
- Highchart doesn't show the graph : error adding javascript array in series
- Update datalabel on click of a point on the series of a highcharts timeline chart
- Update chart after every array plot, Highcharts
- Highcharts userOptions does not update after changing the chart title
- highchart : Add the series name on the column chart
- How do I export the current styling of a HighChart series chart to PNG, JPG or PDF?
- spline chart highchart to fill the color in series
- I'm trying to have a hide series button on my highchart but it makes the chart disappear
- Highchart - show / hide an y-Axis without hiding the series
- Highchart series update in javascript
- How to export a Highchart chart to PDF thanks to a button outside the chart?
- Highchart Area Range chart with gradient that follows the line
- Displaying multiple series in the navigator of an HighStock chart
- Highchart - Redraw Chart after Window is resized
- Change series data dynamically in react-highcharts without re-render of the chart
- Highcharts - Scatter chart with a line connecting the dots in the series
- highchart chart redraw method is not refreshing the chart
- Use single color for all series in the same chart
- put the highchart legend to the bottom of the chart and horizontally centered
- Several Series with the same xAxis data in HighChart
- Waterfall Highchart to start some of the columns in between the series with 0 y-axis
More Query from same tag
- highstock chart click get closest point
- Float and lambda - getting Type Error, a float is required
- Highcharts - Global configuration with common code and unique data & Headings
- Highcarts in Laravel
- Highcharts/Highstock add shapes/flags to multiples panes not just the first pane
- Highcharts- How to style the colums to have gradient colors
- Highcharts how to make legends as data labels on scatter plot
- HighChart to show multiple chart after drill down?
- How to get current level on drilldown event in Highcharts treemap?
- Highcharts (Highstock): Get data from external CSV, doesn't display date correctly
- How to draw line plus bar chart using highcharts/d3.js or any other chart library?
- Highcharts Polar Chart customization
- Highcharts hover delay and not rendering with multiple series
- Title below Pie charts
- How to listenTo afterSetExtremes event in Highcharts from Backbone
- Y axis does not disappear after setting extremes
- Search for and zoom in to a scatter plot point (Highcharts, react.js)
- Passing JSONArray to JQuery outputs Object
- Center of chart(pieChart)
- Highcharts - series.remove(); 4 series in chart, only 2 removed
- Customize Highcharts xaxis label
- HighCharts remove stack totals
- Clicking on a button triggers the same event twice? Strange behaviour for Highcharts legend display
- How to bind model list variable to highchart
- why my highchart code is not working?
- Higchart to set hidden value
- highcharts not showing decimal points coming from xml
- Display two labels for each bar in highcharts(one inside and one outside)
- Get number and percentage on Highchart´s chart
- Setting data with null values doesn't remove dots from the chart