Where is the Mouseover trigger for chords in Bostock's “Uber Rides by Neighborhood” Chord viz?

Folks-

I'm working on a d3.js chord diagram that is based on http://bost.ocks.org/mike/uberdata/ :

Line 88 clearly shows the mouseover event for the neighborhood "group" object.

Line 123-130 show how the title is concatenated for the chord.

However, there is no mouseover trigger to show/hide the .text associated with the nodes.

Is this an "automatic" feature of JS? Or is the behavior part of the d3.js script?

The reason I ask is that I need to replace the hover behavior with a click behavior, since it needs to be usable on the iPad.

Answers


The default tooltip is an automatic browser feature that is based on the <title> element inside a shape element. In the chord diagram example, you can see group.append("title") at line 91 and chord.append("title") at line 123.

There is no automatic equivalent for touch devices that I know of.


Need Your Help

PhoneGap with SenchaTouch for Android App

android cordova extjs

I am facing an issue while trying to build an Android app using Sencha Touch and with PhoneGap.

pure abstract class and interface

java

Can anyone tell me what exactly the difference between an completely abstract class and an interface?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.