Skip to content
This repository has been archived by the owner on Dec 26, 2018. It is now read-only.

Latest commit

 

History

History
20 lines (15 loc) · 805 Bytes

lineChart.md

File metadata and controls

20 lines (15 loc) · 805 Bytes

Line Chart

Example

<iframe width="100%" height="400" src="//jsfiddle.net/YangWei/9g7zbk0h/embedded/result,js,html/" allowfullscreen="allowfullscreen" frameborder="0"></iframe>

Props

Name Type Default Description
circleRadius number 3
hoverAnimation bool true
margins object { top: 10, right: 20, bottom: 50, left: 45 }
data any
domain object { x: [], y: [] } Specify min and max values for the X and Y axis. E.g., {y:[0,]} will force the Y axis to start at zero instead of automatically calculating it from min(input_y_values).
className 'rd3-linechart'
xAxisClassName 'rd3-linechart-xaxis'
yAxisClassName 'rd3-linechart-yaxis'