score:5
To follow up for folks reading this question and its answers, the issue with scrolling and Highcharts visualizations was resolved with Version 3.0.1 (2013-04-09). Highstock, a sibling of Highcharts, received a similar update with Version 1.3.1 (2013-04-09).
Added new option, tooltip.followTouchMove. When this is true, the tooltip can be moved by dragging a single finger across the chart, like in Highcharts 2. When it is false, dragging a single finger is ignored by the chart, and causes the whole page to scroll. This applies only when zooming is not enabled.
Further enhancements were made in Highcharts Version 4.1.0 (2015-02-16):
Made tooltip.followTouchMove true by default, and allowed page scroll at the same time.
For the complete Highcharts change log, see http://www.highcharts.com/documentation/changelog.
score:1
The problem is caused by Highcharts capturing all touch events and making them do nothing. I solved this by basically just overlaying a div over the chart area on mobile devices and preventing those events from reaching highcharts elements (so they are free to trigger default behavior, i.e. page scrolling). I used this JS (assuming you are also using JQuery or equivalent):
$('.highcharts-container').each(function() {
var dragHandle;
dragHandle = $('<div class="chart-drag-handle">');
$(this).append(dragHandle);
dragHandle.on('touchstart', function(e) {
e.stopPropagation();
});
dragHandle.on('touchmove', function(e) {
e.stopPropagation();
});
dragHandle.on('touchend', function(e) {
e.stopPropagation();
});
dragHandle.on('touchcancel', function(e) {
e.stopPropagation();
});
});
The elements added would need to be styled to overlay the chart, I did that like so:
.highcharts-container .chart-drag-handle {
position: absolute;
height: 100%;
width: 100%;
top: 0;
z-index: 100;
}
score:19
Try this link .... Just make a separate javascript file ,copy paste the code and include the file
Source: stackoverflow.com
Related Query
- Scrolling over highcharts graph
- HighCharts Bubble graph JSON as data source
- How to modify the code so that Highcharts graph does not cover fixed navigation bar at the top of the page?
- putting a semi-transparent div over a highcharts graph
- Resizing Highcharts data when creating Graph when over 100
- The graph is not equal on the basis of the addition code in Highcharts
- Disable-Click on Legend in HighCharts Column Graph
- missing value in highcharts line graph results in no line, just points
- How to hyperlink bar graph in highcharts
- Highcharts - Dyanmic graph with no initial data
- Highcharts graph X-axis label for different date ranges
- How to change graph colour above and below plotline in Highcharts
- How do I get the value of a highcharts graph point on mouseover?
- Dynamically applying plot bands to a Highcharts graph
- Using Highcharts and displaying a message over or on the chart when there is no data
- How to pass custom data into Highcharts graph click event
- Highcharts stacked bar graph as timeline
- How do I set highcharts line graph point colors to an array of colors?
- Creating a line graph with highcharts and data in an external csv
- highcharts zero values results in graph half way instead at the bottom
- Using PhantomJS to create HighCharts grahps server side for use in PDF creation (PHP) - results in exit code 11 from PHPs exec();
- Highcharts exporting over HTTPS
- Legend and Axis titles not showing in Highcharts Graph
- Legend and Axis titles not showing in Highcharts Graph
- Highcharts - Global configuration with common code and unique data & Headings
- Highcharts: How to provide a custom stack label in highcharts bar graph from within the stackLabel formatter?
- Highcharts - Multiple Axis Graph not displaying labels
- High Charts - mouse over event on any part of graph
- Highcharts not displaying series data for graph with multiple Y-axes
- HighCharts chart export (screenshot download) does not display Navigator graph
More Query from same tag
- Bar chart label alignment for all the zero values
- Highcharts: Cannot read property 'chart' of undefined
- highcharts-ng ajax data load
- Controlling when boost mode is used in HighCharts?
- highstock 2.0.4 not working on IE and Firefox
- Highchart drawing issue
- Live chart in Highcharts makes the line series very .. mountainous
- Dynamically update area.stacking from normal to null using highchart-ng
- Avoid showing duplicate stack labels on the every column series in a. highcharts
- How can get the position of line series in high stock chart
- Is a Highcharts heatmap possible with a datetime axis, in a single row?
- Highcharts tooltip on IE9
- highcharts using pie chart plotOptions
- Change the legend in highcharts heatmap to show instead of a color bar, a set of fixed icons with hide and show on click
- High charts not showing all the values on X-asix
- How can I change the distance between columns in highcharts?
- PHP: Convert date to Javascript date (January = zero)
- problem Highchart Show/Hide data label on hover legend
- How can I get inner slice when clicking on an outer slice in a HighChart donut chart?
- Highcharts Highstock How do I change the label on top of tooltip for OHLC series data?
- Highchart datetime graph x-axis unable to get data on plot when min and max is on
- HighCharts Axes Alignment
- Highcharts legend how to show multiple charts data category?
- Is to possible to delay the needle loading animation in Highcharts angular gauge?
- Highcharts issue when start index is less than 0
- Changing Color of Data Labels in HighCharts Bar Chart
- highcharts - error when updating a series to have less categories than previously
- Highcharts - align columns to gridlines when using series timestamps
- highcharts datetime type doesnt work in bootstrap 4 column
- Highstock Navigator and xAxis show numbers instead of dates