oxfordinternetinstitute / InteractiveVis

The InteractiveVis project, funded by JISC from May to September 2012, aims to allow easy creation of interactive visualisations for geospatial and network data using native web technologies (HTML5, CSS3, and SVG) and allow these visualisations to be self-contained so that they may run entirely offline in ebooks and other media. The project will survey existing solutions and build the necessary components to fill in missing features and smooth over incompatibilities in between existing libraries. The project will further provide online hosted wizards to allow for the easy creation of these interactive visualizations. All code is open source and released under the GNU GPL v3 license.
http://blogs.oii.ox.ac.uk/vis
130 stars 51 forks source link

open information panel when initially onload the page #55

Closed ldkingvivi closed 10 years ago

ldkingvivi commented 10 years ago

right now the information panel only open when onclick the node or the url inside the information panel, is there a way to show the information panel for one node by default when people load/open the page without clicking

ldkingvivi commented 10 years ago

Hi Guys,

Any update on this issue?

Di

computermacgyver commented 10 years ago

When a user clicks a node, the nodeActive function is called with the node's id as its single parameter. You can manually call this function after the page loads or at the end of the (dataReady([https://github.com/oxfordinternetinstitute/InteractiveVis/blob/master/network/js/main.js#L111] function if you wish to simulate the action of the user having clicked the node. Note that this will result in non-connected nodes being dimmed/hidden (depending on the configuration settings).

I have no plans to build this into the toolkit at present, but if you do build a general approach (e.g., adding a showOnLoadNode parameter or similar to the config.json, please do contribute back with a pull request and I can merge into the repository.