Welcome to the installation guide for MetExploreViz
Get MetExploreViz package
To begin, you'll need to import MetExploreViz into your project. There are two ways to obtain the MetExploreViz library.
The first method is to download the source code. Click here to visit the MetExploreViz repository and download the code source. After that, you'll need to build MetExploreViz using Sencha cmd:
sencha app build Sencha create the packgaging folder following this path: '~/build/production/MetExploreViz'. Finally, you have to embed the packaging folder of MetExploreViz in your project. The second possibility is to use npm install. First, you need to create a '.npmrc' file in your project and add the URL of the MetExplore registry by typing:
echo @metexplore:registry=https://forge.inrae.fr/api/v4/packages/npm/ >> .npmrc Then, you can install it with: npm i @metexplore/metexploreviz Import MetExploreViz package
We will utilize the MetExploreViz API Reference to integrate the library into a website.
First, place the MetExploreViz package folder in your project. Then import MetExploreViz in your project header:
<script type="text/javascript" src="js/metExploreViz/metexploreviz.js" charset="utf-8"> </script> Create a division to integrate the visualisation:
<div class="visu" id="visu" style="width:100%; height:400px; "></div> And load the library in the webpage:
<script type="text/javascript">
MetExploreViz.initFrame("visu");
</script>