benchmarkingChart_scatter
npm install @inb/oeb-chart-scatter@inb/oeb-chart-scatter published to: https://www.npmjs.com/package/@inb/oeb-chart-scatterPer default it consumes the OpenEBench Sci-API (deprecated).
It is also able to consume the new API OpenEBench API Scientific.
The API can be set by supplying the following attribute: data-api-url="{{ API_URL }}"
The component can be imported in two way: As npm package (preferred), or via the build file from the git repository (see bottom).
npm i @inb/oeb-chart-scatter
In your frontend component:import { load_scatter_visualization } from "@inb/oeb-chart-scatter";
``
data-id="{{ ID }}"
class="benchmarkingChart_scatter"
data-api-url="{{ API_URL }}"
toTable="true"
>
You can then call the
load_scatter_visualization() function.$3
- data-id : the official OEB id of the aggregation dataset you want to visualize.
- toTable: should be set to true/false depending whether you want to view the classification table in the right or not.
- class: should always be 'benchmarkingChart_scatter'
- data-api-url: Should always contain the full API URL e.g. https://openebench.bsc.es/api/scientific/graphql
$3
Requirements:
-npm
-http server
Clone the repo to your document root :
`
git clone https://github.com/inab/OpenEBench_scientific_visualizer.git
`Install dependencies from package.json :
`
npm install
`Export node moodules :
`
export PATH="${PWD}/node_modules/.bin/:$PATH"
`
Compile with webpack and visualize sample results in your localhost :
`
./node_modules/.bin/webpack-cli src/app.js --output=build/build.js -d -w
`
Add JS cdn for D3 and jquery and the build file which you can download from build/build.js and tag it into your html. You can then call the load_scatter_visualization()` function. The HTML file should look like this