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