1.0.4 • Published 5 years ago
vsi-tools-library v1.0.4
vsi-tools-library
A quick library that is used by VSI to quickly include common formatters and convertors
Getting Started
install the package with the simple command below
npm i vsi-tools-library
Example using the trimDecimals function from vsi-tools-library
const { trimDecimals } = require('vsi-tools-library.js')
OR
import trimDecimals from 'vsi-tools-library'
//Example : Using vsi-tools-library to trim off decimals
const num = 41.9378
num = trimDecimals(num)
console.log(num) --> 41
Reference
function | Description |
---|---|
trimDecimals | Use this to return an integer and trim off trailing decimals |
PieChartFormatConverter | Format the graph to display a pie chart |
CustomInteractionHandlers | A toolbelt of custom interactions that are used as event listeners |
StackedBarFormatConverter | Format the graph to display a stacked bar chart |
StockChartFormatConverter | Format the graph to display a stock format convertor chart |
DualAxisResourceFormatConverter | Format the graph to display a DualAxisResourceFormatConverterchart |