chore: update readme
This commit is contained in:
parent
6e687cd1cd
commit
f59de5f11e
11
README.md
11
README.md
@ -39,7 +39,7 @@
|
|||||||
#### Installation
|
#### Installation
|
||||||
* Install via [`npm`](https://www.npmjs.com/get-npm):
|
* Install via [`npm`](https://www.npmjs.com/get-npm):
|
||||||
|
|
||||||
```console
|
```sh
|
||||||
$ npm install frappe-charts
|
$ npm install frappe-charts
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -91,11 +91,10 @@ const chart = new frappe.Chart("#chart", { // or a DOM element,
|
|||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
...or for es-modules:
|
...or for es-modules (replace `new frappe.Chart()` with `new Chart()`):
|
||||||
```js
|
```diff
|
||||||
|
- const chart = new frappe.Chart("#chart", {
|
||||||
//replace new frappe.Chart() with new Chart()
|
+ const chart = new Chart("#chart", { // or a DOM element,
|
||||||
const chart = new Chart("#chart", { // or a DOM element,
|
|
||||||
// new Chart() in case of ES6 module with above usage
|
// new Chart() in case of ES6 module with above usage
|
||||||
title: "My Awesome Chart",
|
title: "My Awesome Chart",
|
||||||
data: data,
|
data: data,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user