Giter VIP home page Giter VIP logo

Comments (5)

niffrig avatar niffrig commented on June 9, 2024

This had previously worked sometimes in an earlier version of highcharts. The text would render as a hyperlink but it would be below other layers of the graph and would not be clickable.

from highcharts.

TorsteinHonsi avatar TorsteinHonsi commented on June 9, 2024

Links on the labels have never been officially supported by the API, so this is not a bug. The bad news is that HTML links won't work in 2.0. The good news is that you can add onclicks directly on the labels, and you won't have different layers blocking it like it was in 1.2. Many users are requesting the possibility of adding links on the labels, so it will be added at some point.

To add links, you can grab the labels by jQuery. Here's how to do it in SVG enabled browsers: http://jsfiddle.net/3FHTm/. In IE you can grab spans or divs the same way.

from highcharts.

niffrig avatar niffrig commented on June 9, 2024

Thanks for the follow up. I think we should be able to work with it that way.

from highcharts.

TorsteinHonsi avatar TorsteinHonsi commented on June 9, 2024

After some thought I found out this can be done by parsing the HTML string, and applying an onclick event to the SVG tspan.

from highcharts.

TorsteinHonsi avatar TorsteinHonsi commented on June 9, 2024

2.0 pre-release: Added hyperlink parsing in texts. Closed by af05120.

from highcharts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.