logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
fourfruit  
#1 Posted : Friday, May 11, 2018 2:29:27 AM(UTC)
fourfruit

Rank: Member

Groups: Registered
Joined: 1/18/2017(UTC)
Posts: 10
Taiwan, Province Of China
Location: Maoli

Thanks: 4 times
Dear Sirs,
we plotted line chart by using NVD3-chart format. As mouse moving on chart line path,
we want to add mouse dblclick event to get X-coordinate value and copy it to clipboard.
How to handle this ? Please give us ideas. Thank you.
epf  
#2 Posted : Monday, May 14, 2018 6:04:01 AM(UTC)
epf

Rank: Administration

Groups: Administrators
Joined: 12/20/2013(UTC)
Posts: 542
Switzerland

Thanks: 7 times
Was thanked: 77 time(s) in 75 post(s)
You have to check NVD/Javascript documentation...
In ChartNVD3.cshtml, you have already a Click handler that works only for Pie charts.

Code:
                   if ((@chartId).pie) {
                        (@chartId).pie.dispatch.on("elementClick", function (e) {
                            var nav = @(chartId).navigations[e.data.x];
                            if (nav) showPopupNavMenu(e.event, nav, true);
                        });
                    }


Check also the other chart types, they are well documented.
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.