3.0.1 • Published 7 days ago
@eo4geo/find-in-bok-dataviz v3.0.1
EO4GEO-bok-dataviz-v3
EO4GEO-bok-dataviz-v3 is an script to parse a json-ld file and visualize it in a circle packing d3 layout.
Installation
Using npm:
npm i @eo4geo/find-in-bok-dataviz
Usage
Place a div and give it this ids. Use 'bubbles' for the graphical visualisation of the bok and 'textInfo' for the information about the current bok node.
<div id="bubbles"> </div>
<div id="textInfo"></div>
In Javascript call the function visualizeBOKData(url, code).
- url : is the location BD
- code : concept code to navigate to (optional)
import * as bok from '@eo4geo/find-in-bok-dataviz';
[...]
// will render the graphical view and the textual view from the current version in database
bok.visualizeBOKData('https://eo4geo-uji.firebaseio.com/', null);
Other functions
import * as bok from '@eo4geo/find-in-bok-dataviz';
[...]
selectedNodes = bok.searchInBoK(searchText); // returns an array of concepts matching the searchText string
bok.browseToConcept(conceptShortName); // navigates to the concept specified
bok.cleanSearchInBOK(); // clean search highlighting
// Examples
selectedNodes = bok.searchInBoK('Analytics');
bok.browseToConcept('GIST'); // navigates to root concept
bok.browseToConcept('AM'); // navigates to Analytical Methods concept
bok.cleanSearchInBOK();
3.0.1
7 days ago
3.0.0
9 days ago
2.2.12
3 years ago
2.2.11
3 years ago
2.2.10
4 years ago
2.2.9
4 years ago
2.2.8
4 years ago
2.2.7
4 years ago
2.2.6
4 years ago
2.2.5
4 years ago
2.2.3
4 years ago
2.2.2
4 years ago
2.2.4
4 years ago
2.2.1
4 years ago
2.2.0
4 years ago
2.1.0
4 years ago
2.0.0
4 years ago
1.9.0
4 years ago
1.8.0
4 years ago
1.7.0
4 years ago
1.6.0
4 years ago
1.5.0
4 years ago
1.4.0
4 years ago
1.3.0
4 years ago
1.2.0
4 years ago
1.1.0
4 years ago
1.0.0
4 years ago