score:3
The condition you are checking for
if ($('image').attr('href', 'http://inadcod.com/img/zoom.png')) {
is invalid, as it is preceeded by
chart = new Highcharts.Chart(options);
This creates the image again (in the newly created chart's load handler) with the original zoom.png
hence the condition is always true, except the very 1st time, when there is no image.
You need to have a different check like a boolean variable out side to this chart which you will check and then flip every time it is clicked
score:1
I cheated a bit by adding a class that denoted the zoom to the container node. I'm not sure why it doesn't recognize the update to the href property, but this is one alternative:
Source: stackoverflow.com
Related Query
- highcharts change rendered image source on click
- Change Highcharts tooltip formatter from chart Object , after chart is rendered
- Highcharts - change column stacking on click
- How to change one point color on click in Highcharts
- Adding tool-tip to an image rendered using Highcharts Renderer.image() api
- Highcharts Image click event
- Highcharts - Dynamically change chart type with on radio buttons click
- Change the legend in highcharts heatmap to show instead of a color bar, a set of fixed icons with hide and show on click
- Highcharts organization change size image and position
- How to change code in "Pie Chart" in HighCharts
- How do you change the colour of each category within a highcharts column chart?
- How to modify highcharts legend item click event?
- How can I change the colors of my highcharts piechart?
- Programmatically change a chart title in highcharts
- Change HighCharts axis title
- Highcharts - Change legend index order
- Highcharts : Change opacity of a column chart
- How to change the text color in Highcharts
- How do I dynamically change a data point in Highcharts using JavaScript
- Highcharts Change Bar Color Based on Value
- Change title when drilldown in Highcharts
- Capturing webpage as image in c#, ensuring javascript rendered elements are visible
- Highcharts dynamically change bar color based on value
- Highcharts - Keep tooltip showing on click
- How to change graph colour above and below plotline in Highcharts
- programmatically click on column in Highcharts
- Highcharts how to change x axis options
- Highcharts - Double click event
- highcharts jquery dynamic change chart type column to bar
- Highcharts chart click event fired on click of the reset zoom button (bug?)
More Query from same tag
- Highcharts hover bug - with video to demonstrate
- Grid (gridlines) in Highcharts line chart
- Getting the complete XML source out of an XML DOM object
- Highchart duplicates data on chart instead of refreshing it
- How to apply color gradient in progress bar in high chart with stylemode in Angular
- How to embed solid Gauge using highcharts inside a div of a specific size
- Drill down solidgauge chart to 2 series bar chart
- Add extra tooltip in Highcharts
- Parse string to set of data in JavaScript(jQuery) to match series in HighCharts
- Highcharts.js, how to zoom in on one chart to resize another as Stackoverflow has done?
- How to customize the polar chart in this way?
- How to dynamically change axis from linear to logarithmic in HighChart
- Highcharts click function update series and cancel previous update
- How to select the drillup button using jquery, so I can do an on click event?
- Highcharts appends two types of charts in one div
- Variable tick length in highcharts
- Highcharts - How to display legend symbol inside the tooltip
- How to change Time Zone in Angular2-HighCharts?
- Markers/Circles in Spline chart in highcharts
- Highstocks - Use tickmarkPlacement "between" on datetime Axis (no categories)
- How to set the url of moment.min.js to local js file when highcharts exporting png file
- HighCharts - how to align (justify) xAxis labels left and right
- Not able to drill down after clicking back button.
- Can not get series data in Highcharts, Highstock
- Highcharts text labels for y-axis
- Display bar as an arrow with Highcharts
- Highcharts: create multiple series grouped my month and year using JSON data
- Highchart in new window
- How to plot against time on x-axis Highcharts.js
- DateTime xAxis Label Not Displaying Correct