Quick example (npm)
Here's a super-quick example of using the rawgraphs from javascript code.
In this case we'll assume we're using yarn
to install the package from npm. Refer to
installation for other options.
See the live demo at the end of the page for a complete example.
#
Installation#
Install some chartsTo do something useful with rawgraphs-core, we'll need some charts as well. Let's use the charts from the rawgraphs-charts package.
#
Rendering a bubblechartIn this example we'll build a bubblechart from the @rawgraphs/rawgraphs-core repository. We'll assume a basic html structure like the following
The chart will be renderend by javascript code in the index.js
:
#
Live demoHere's a live demo of the code shown above running in codesandbox