Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

License

NotificationsYou must be signed in to change notification settings

coreui/coreui-react-chartjs

 
 

Repository files navigation

npm packageNPM downloadsreact

install:
npm install @coreui/react-chartjs
import:
import{CChart}from'@coreui/react-chartjs';

or

import{CChart,CChartBar,CChartHorizontalBar,CChartLine,CChartDoughnut,CChartRadar,CChartPie,CChartPolarArea,}from'@coreui/react-chartjs'
props:
  • innerRef object | func | string
  • datasets array
  • labels array | string
  • options object
  • plugins array
  • type string:bar |horizontalBar |line |doughnut |radar |pie |polarArea
usage:
...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
npm run scripts

package.json is configured with"scripts" we can use withnpm run while developing the project.

CommandDescription
npm startstart a development server for the demo app
npm testrun tests
npm run test:coveragerun tests and produce a code coverage report incoverage/
npm run test:watchstart a test server and re-run tests on every change
npm run buildprepare for publishing to npm
npm run cleandelete built resources

see also:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors3

  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp