SparkLines is a small line chart which shows the general shape of variation. It can be used to visualize trends and statistical information.
Size of the parent element/component (passed by the Responsive hoc)
type: shape[object Object]
Additional css classes passed from parent
type: string
defaultValue: ''
Array of data elements each having xvalue and yvalue
type: arrayOf[object Object]
defaultValue: []
if true, fill the area under the line
type: bool
defaultValue: true
Margins for the chart
type: shape[object Object]
defaultValue: { top: 2, right: 0, bottom: 2, left: 0, }
Handle onHover functionality
type: func
defaultValue: () => {}
Modify the x-value label
type: func
defaultValue: d => d
Access the x-value of data point
type: func
Modify the y-value label
type: func
defaultValue: d => d
Access the y-value of data point
type: func