update docs

This commit is contained in:
pratu16x7 2017-11-05 14:54:39 +05:30
parent 87ea03af19
commit 17955256d4
4 changed files with 5 additions and 21 deletions

View File

@ -35,7 +35,7 @@
and include in your project: and include in your project:
```js ```js
import Chart from "frappe-charts" import Chart from "frappe-charts/dist/frappe-charts.min.esm"
``` ```
* ...or include within your HTML * ...or include within your HTML

View File

@ -3235,14 +3235,6 @@ var Heatmap = function (_BaseChart) {
return Heatmap; return Heatmap;
}(BaseChart); }(BaseChart);
// if ("development" !== 'production') {
// // Enable LiveReload
// document.write(
// '<script src="http://' + (location.host || 'localhost').split(':')[0] +
// ':35729/livereload.js?snipver=1"></' + 'script>'
// );
// }
var chartTypes = { var chartTypes = {
line: LineChart, line: LineChart,
bar: BarChart, bar: BarChart,

View File

@ -3233,14 +3233,6 @@ var Heatmap = function (_BaseChart) {
return Heatmap; return Heatmap;
}(BaseChart); }(BaseChart);
// if ("development" !== 'production') {
// // Enable LiveReload
// document.write(
// '<script src="http://' + (location.host || 'localhost').split(':')[0] +
// ':35729/livereload.js?snipver=1"></' + 'script>'
// );
// }
var chartTypes = { var chartTypes = {
line: LineChart, line: LineChart,
bar: BarChart, bar: BarChart,

View File

@ -51,7 +51,7 @@
<p class="step-explain">Install</p> <p class="step-explain">Install</p>
<pre><code class="hljs console"> npm install frappe-charts</code></pre> <pre><code class="hljs console"> npm install frappe-charts</code></pre>
<p class="step-explain">And include it in your project</p> <p class="step-explain">And include it in your project</p>
<pre><code class="hljs javascript"> import Chart from "frappe-charts"</code></pre> <pre><code class="hljs javascript"> import Chart from "frappe-charts/dist/frappe-charts.min.esm"</code></pre>
<p class="step-explain">... or include it directly in your HTML</p> <p class="step-explain">... or include it directly in your HTML</p>
<pre><code class="hljs html"> &lt;script src="https://unpkg.com/frappe-charts@0.0.3/dist/frappe-charts.min.iife.js" /&gt;</code></pre> <pre><code class="hljs html"> &lt;script src="https://unpkg.com/frappe-charts@0.0.3/dist/frappe-charts.min.iife.js" /&gt;</code></pre>
<p class="step-explain">Make a new Chart</p> <p class="step-explain">Make a new Chart</p>