- Notifications
You must be signed in to change notification settings - Fork3
License
NotificationsYou must be signed in to change notification settings
coreui/coreui-react-chartjs
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
npm install @coreui/react-chartjs
import{CChart}from'@coreui/react-chartjs';
or
import{CChart,CChartBar,CChartHorizontalBar,CChartLine,CChartDoughnut,CChartRadar,CChartPie,CChartPolarArea,}from'@coreui/react-chartjs'
innerRef
object | func | stringdatasets
arraylabels
array | stringoptions
objectplugins
arraytype
string:bar
|horizontalBar
|line
|doughnut
|radar
|pie
|polarArea
...classCoreUIChartsextendsComponent{...render(){return(<CCharttype="radar"datasets={[{label:'2019',backgroundColor:'rgba(179,181,198,0.2)',borderColor:'rgba(179,181,198,1)',pointBackgroundColor:'rgba(179,181,198,1)',pointBorderColor:'#fff',pointHoverBackgroundColor:'#fff',pointHoverBorderColor:'rgba(179,181,198,1)',tooltipLabelColor:'rgba(179,181,198,1)',data:[65,59,90,81,56,55,40]},{label:'2020',backgroundColor:'rgba(255,99,132,0.2)',borderColor:'rgba(255,99,132,1)',pointBackgroundColor:'rgba(255,99,132,1)',pointBorderColor:'#fff',pointHoverBackgroundColor:'#fff',pointHoverBorderColor:'rgba(255,99,132,1)',tooltipLabelColor:'rgba(255,99,132,1)',data:[28,48,40,19,96,27,100]}]}options={{aspectRatio:1.5,tooltips:{enabled:true}}}labels={['Eating','Drinking','Sleeping','Designing','Coding','Cycling','Running']}/>)}...
- bootstrapped withnwb toolkit
package.json
is configured with"scripts"
we can use withnpm run
while developing the project.
Command | Description |
---|---|
npm start | start a development server for the demo app |
npm test | run tests |
npm run test:coverage | run tests and produce a code coverage report incoverage/ |
npm run test:watch | start a test server and re-run tests on every change |
npm run build | prepare for publishing to npm |
npm run clean | delete built resources |
About
No description, website, or topics provided.
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.