Api staticFunctions in EJ2 TypeScript Chart control

8 May 20231 minute to read

Root static functions of Sparkline Component

createScrollSvg

Create scrollbar svg.

Returns void

calculateSize

Method to calculate the width and height of the chart

Returns void

getTitle

To calculate chart title and height

Returns string[]

sort

Function to sort the dataSource, by default it sort the data in ascending order.

Returns Object[]

textWrap

Method to find new text and element size based on textOverflow

Returns string[]

titlePositionX

Method to calculate x position of title

Returns number