Comments (5)
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.
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.
Thanks for the follow up. I think we should be able to work with it that way.
from highcharts.
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.
2.0 pre-release: Added hyperlink parsing in texts. Closed by af05120.
from highcharts.
Related Issues (20)
- Fully boosted chart does not respect multiple y axes' boundaries HOT 1
- With boosted series, clipmasks are not updated when plot height changes if chart was not initialized with disjoint y axes HOT 1
- Export is not respecting requested chart size HOT 3
- Chart is expanding endless HOT 1
- Dashboards drag & drop doesn't work on firefox
- Network waterfall chart HOT 2
- Incorrect months label for last days of month HOT 1
- Bug : Regarding Column Bar Graph While Plotting Data HOT 3
- Geoheatmap performance problem with exporting and a11y modules combined
- Unable to run eslint for Dashboards HOT 1
- RangeSelector.selected option lost in udate
- Error in Stock Chart with GUI demo
- Offline PDF Export: Fails on sunburst HOT 1
- There is an issue with `tickmarkOffset` and rendering code for axis tickmarks HOT 4
- Add `yAxis.lineDashStyle` to control the yAxis vertical line style HOT 3
- Improper charts when boost is enabled HOT 1
- Type of axis label padding changes in 11.4.3 HOT 3
- Ability to sort columns in DataGrid HOT 3
- Chart renders differently in production build (`process.env.NODE_ENV=production`) - seems to be related to `xAxis.labels.distance` HOT 1
- Disabling navigator via `setOptions` doesn't work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from highcharts.