canvasxpress-users Mailing List for canvasXpress
Brought to you by:
neuhausi
You can subscribe to this list here.
| 2011 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|---|
|
From: <Wil...@l-...> - 2011-04-04 17:04:23
|
canvasXpress appears to be a very powerful tool for graphing; one in which I am looking in to. Not being an expert on JSON or javascript (or high level math/biology), some of the concepts are a bit complicated for me. Hopefully, we can get an open dialogue running here and trade off ideas.
My first issue is to try to figure out how to customize my own callbacks for the 'click' event on an object in the Network diagram. I see the documentation at the end of the canvasXpress introduction page, but have been unsuccessful actually getting anything to work. What I want to do is to be able to click on an 'edge' and get custom defined information. I am guessing that I am going to have to stuff whatever extra info I need in to each edge json object (e.g,
edges: [{id1: 'Gene', id2: 'SNP', ....... extraInfo: '<html><p>Gene blah blah</p><p>blah</p><html>'}, {id1:...............).
So in the example just provided I would possibly want an alert to pop-up with the 'extraInfo' attribute for that edge.
Any ideas?
thanks,
Bill
|