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
Nilesh Patel
NA
304
7.8k
find correct location of active index
Nov 28 2017 4:14 AM
Hello,
I have added new chart in my dashboard & after binding data i have set onclick event on chart aree for show Drildown details.
it is working fine in chorme browser but in fire for not getting correct location of index so open wrong data in drildown.
I have below code on _onChartAreaClick: function(event,activeSlabs)
{
var self = this,
activeSlab = activeSlabs[0],
slabHeight = 0;
for (var i = 0; i < activeSlabs.length; i++){
slabHeight = activeSlabs[i]._view.base - activeSlabs[i]._view.y;
var rect = new MyRect(activeSlabs[i]._view.x, activeSlabs[i]._view.y, activeSlabs[i]._view.width, slabHeight);
if (rect.contains(event.clientX + 5, event.clientY)){
activeSlab = activeSlabs[i];
break;
}
}
Occur due to not getting correct activeSlab
Reply
Answers (
1
)
How to collapse toggle using button
Open new tabs but stay in current tab