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
- Can highcharts stacked percentage column chart be less than 100%
- High charts Donut Chart not rendering
- How to add one more value against at the end of each bar with a legend
- HighCharts how to make drilldown label show on mobile view?
- Interact with highcharts using jQuery?
- Highcharts - fire legendItemClick event
- SVG javascript chart scraping
- Highcharts - After setting minTickInterval to one day, tickmarks aren't appearing under points
- How can I sort the stacked bar charts in Highcharts by the sum of positive response?
- Persian (farsi) numbers in highchart
- Add custom images in highstock series
- highcharts tooltip text align
- Highcharts: convert columns to stacked column in multiple axis chart
- How to change time in hours on HighChart xAxis from Military to Standard time?
- HighCharts: Reaching options of other charts from point event
- Always display value in highcharts column chart
- Highcharts to get Combined Bar and line charts
- Group of ungrouped column chart
- HighChart - Group data by day
- How to use high charts in Angular?
- How to add random ticks on a line chart at a specific position
- Strange behavior with highcharts when using "column" type and multiple datetime series
- @Param Plumber Doens't work with Highcharts - R
- Highcharts : how to display only days on xaxis?
- High Charts - dynamically place elements within tooltip
- Error with PhantomJS when installing Highcharts export server on Azure VM (Ubuntu 20.04)
- Highcharts format json data from php script / unixtime
- Highcharts Heatmap Edit Legend
- Set the with of xAxis label to 50% on a Highcharts BarChart
- Setting tick interval dynamically in highstock chart