Rank: Member
Groups: Registered
Joined: 1/18/2017(UTC) Posts: 11 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.
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 12/20/2013(UTC) Posts: 1,209 Thanks: 14 times Was thanked: 206 time(s) in 199 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.
|
|
|
|
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.