Skip to content

Commit

Permalink
Add: information
Browse files Browse the repository at this point in the history
  • Loading branch information
poboisvert committed Apr 30, 2024
1 parent fc25c3a commit 95558a9
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,16 @@ A continuation of https://github.com/fraserxu/react-chartist. Feel free to push
npm install --save next-chartist
```

or in \_app or layout.tsx/jsx

```bash
<script src="//cdn.jsdelivr.net/chartist.js/latest/chartist.min.js"></script>
```

## Usage

```
<link rel="stylesheet" href="//cdn.jsdelivr.net/chartist.js/latest/chartist.min.css">
<script src="//cdn.jsdelivr.net/chartist.js/latest/chartist.min.js"></script>
```

```jsx
Expand All @@ -29,8 +34,8 @@ class Example extends Component {
if (data.statistics) {

var dataChart = {
labels: ["Name"],
series: ["James"]
labels: ["Speed"],
series: [1000]
}

var options = {
Expand Down
15 changes: 14 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,18 @@
],
"dependencies": {
"chartist": "^1.3.0"
}
},
"keywords": [
"chart",
"chartist",
"npm",
"ui libraries",
"nextjs",
"plot",
"plotting"
],
"bugs": {
"url": "https://github.com/poboisvert/next-chartist/issues"
},
"homepage": "https://github.com/poboisvert/next-chartist#readme"
}

0 comments on commit 95558a9

Please sign in to comment.