Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8506197
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T02:31:43+00:00 2026-06-11T02:31:43+00:00

I have created a chart based on Highcharts plugin, in which I have rendered

  • 0

I have created a chart based on Highcharts plugin, in which I have rendered an image (a button: “zoom.png”).

This image has an onCLick event which resets my yAxis values.

I need to change the source of this image when the button is clicked; then change it back after the second click.

I managed to change the source of the image for the first click (it changes to “zoom1.png”); but when I click the button again it doesn’t revert to the original source (“zoom.png”)

Here is an example: JsFiddle.

[Edit]: Updated JSFiddle With Cool URIs for the Images

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T02:31:44+00:00Added an answer on June 11, 2026 at 2:31 am

    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

    @jsFiddle

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ggplot2 point chart created like this qplot(Index, Popularity ,data = data.slopeone.agg)
I have created a php/mysql based chat page.It is like gmail chat.once i click
I have created a line chart using Reporting Services that charts the number of
I have created a dozen different charts using the chart form wizard in Access
I have a graph created with MS Chart like the following picture. As you
i need to create a chart similar to this: link text Do you have
I have runtime-created menu based on words in selected gtkTreeView row. gboolean menu_RELEASE(GtkObject *object,
I have created a custom component based on spark.components.HGroup and it works mostly as
I´m using a simple area chart based on a simple Dataset like this: DateTime(sql.timestamp)
I have a dropdown option box in my CS-Cart install that has dynamically created

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.