1.0.0-beta.7 • Published 3 years ago

react-cardiogram v1.0.0-beta.7

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Animated cardiogram component for React

Inspired by and based on ecg-line-webcomponent package.

Demo

Install

npm i react-cardiogram

or

yarn add react-cardiogram

Options

NameDescriptionOptionalDefaultUnit
heightCanvas heightNo100px
widthDefault canvas width. Not necessary to explicitly set as it auto-adjusts to a container width.No500px
colorLine colorNo#22ff22HEX
scaleHow much of canvas height the actual drawing takesNo35%
densityHorizontal "resolution". i.e setting 2 will render 250 points for 500px-wide containerNo2px
thicknessLine thicknessNo2px
cursorSizeThe size of cursorNo3px
paintIntervalTime interval between drawing any two adjacent points. Eventually controls the cardiogram "speed".No30ms
beatFrequencyDraws a spike each number of ms when providedYes-ms

Author

👤 Dmitriy Kudelko dmitriy.kudelko@gmail.com

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2021 Dmitriy Kudelko <dmitriy.kudelko@gmail.com>. This project is MIT licensed.


This README was generated with ❤️ by readme-md-generator