TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Venkatesh K H
NA
116
33.2k
How to make donut chart clickable
Jul 12 2017 5:19 AM
I want to make donut chart clickable. If i click on one slice it should take towards next page(like url(a href).
I have tried this code but it doesnt work for donuts chart.
I have tried to code. but this is only for highlight bar.
Highcharts.chart('container', {
chart: {
type: 'column'
},
title: {
text: 'Click points to go to URL'
},
xAxis: {
type: 'category'
},
plotOptions: {
series: {
cursor: 'pointer',
point: {
events: {
click: function () {
location.href = 'https://en.wikipedia.org/wiki/' +
this.options.key;
}
}
}
}
},
series: [{
data: [{
y: 29.9,
name: 'USA',
key: 'United_States'
}, {
y: 71.5,
name: 'Canada',
key: 'Canada'
}, {
y: 106.4,
name: 'Mexico',
key: 'Mexico'
}]
}]
});
Reply
Answers (
1
)
How to show a color picker inside a bootstrap modal?
What is the use of blur function in JavaScript?