1.0.4 • Published 5 years ago

vsi-tools-library v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

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

functionDescription
trimDecimalsUse this to return an integer and trim off trailing decimals
PieChartFormatConverterFormat the graph to display a pie chart
CustomInteractionHandlersA toolbelt of custom interactions that are used as event listeners
StackedBarFormatConverterFormat the graph to display a stacked bar chart
StockChartFormatConverterFormat the graph to display a stock format convertor chart
DualAxisResourceFormatConverterFormat the graph to display a DualAxisResourceFormatConverterchart
1.0.1

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.0

5 years ago