Update docs on importing module
This commit is contained in:
parent
3a52a56171
commit
0bea3bbb78
@ -32,6 +32,12 @@
|
|||||||
```console
|
```console
|
||||||
$ npm install frappe-charts
|
$ npm install frappe-charts
|
||||||
```
|
```
|
||||||
|
|
||||||
|
and include in your project:
|
||||||
|
```js
|
||||||
|
import Chart from "frappe-charts"
|
||||||
|
```
|
||||||
|
|
||||||
* ...or include within your HTML
|
* ...or include within your HTML
|
||||||
|
|
||||||
```html
|
```html
|
||||||
@ -78,4 +84,5 @@ If you want to contribute:
|
|||||||
This repository has been released under the [MIT License](LICENSE)
|
This repository has been released under the [MIT License](LICENSE)
|
||||||
|
|
||||||
------------------
|
------------------
|
||||||
Made with ♥ by [pratu16x7](https://github.com/pratu16x7). Project maintained by [frappe](https://github.com/frappe)
|
Made with ♥ by [pratu16x7](https://github.com/pratu16x7). Awesome logo by [raghukamath](https://github.com/raghukamath).
|
||||||
|
Project maintained by [frappe](https://github.com/frappe).
|
||||||
|
|||||||
@ -49,9 +49,11 @@
|
|||||||
Create a chart
|
Create a chart
|
||||||
</h6>
|
</h6>
|
||||||
<p class="step-explain">Install</p>
|
<p class="step-explain">Install</p>
|
||||||
<pre><code class="hljs html"> npm install frappe-charts</code></pre>
|
<pre><code class="hljs console"> npm install frappe-charts</code></pre>
|
||||||
<p class="step-explain">Include it in your HTML</p>
|
<p class="step-explain">And include it in your project</p>
|
||||||
<pre><code class="hljs html"> <script src="frappe-charts.min.js" /></code></pre>
|
<pre><code class="hljs javascript"> import Chart from "frappe-charts"</code></pre>
|
||||||
|
<p class="step-explain">... or include it directly in your HTML</p>
|
||||||
|
<pre><code class="hljs html"> <script src="https://unpkg.com/frappe-charts@0.0.3/dist/frappe-charts.min.iife.js" /></code></pre>
|
||||||
<p class="step-explain">Make a new Chart</p>
|
<p class="step-explain">Make a new Chart</p>
|
||||||
<pre><code class="hljs html"> <!--HTML-->
|
<pre><code class="hljs html"> <!--HTML-->
|
||||||
<div id="chart"></div></code></pre>
|
<div id="chart"></div></code></pre>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user