@@ -1,7 +1,7 @@ | |||||
{ | { | ||||
"presets": [ | "presets": [ | ||||
["latest", { | ["latest", { | ||||
"env": { | |||||
"es2015": { | |||||
"modules": false | "modules": false | ||||
} | } | ||||
}] | }] | ||||
@@ -41,7 +41,7 @@ | |||||
* ...or include within your HTML | * ...or include within your HTML | ||||
```html | ```html | ||||
<script src="https://unpkg.com/frappe-charts@0.0.3/dist/frappe-charts.min.iife.js"></script> | |||||
<script src="https://unpkg.com/frappe-charts@0.0.4/dist/frappe-charts.min.iife.js"></script> | |||||
``` | ``` | ||||
#### Usage | #### Usage | ||||
@@ -3235,6 +3235,14 @@ 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, | ||||
@@ -3233,6 +3233,14 @@ 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, | ||||
@@ -90,7 +90,7 @@ let type_chart = new Chart({ | |||||
data: type_data, | data: type_data, | ||||
type: 'bar', | type: 'bar', | ||||
height: 250, | height: 250, | ||||
// is_series: 1 | |||||
is_series: 1 | |||||
}); | }); | ||||
Array.prototype.slice.call( | Array.prototype.slice.call( | ||||
@@ -96,6 +96,10 @@ | |||||
<p class="text-muted"> | <p class="text-muted"> | ||||
<a target="_blank" href="http://www.storytellingwithdata.com/blog/2011/07/death-to-pie-charts">Why Percentage?</a> | <a target="_blank" href="http://www.storytellingwithdata.com/blog/2011/07/death-to-pie-charts">Why Percentage?</a> | ||||
</p> | </p> | ||||
<pre><code class="hljs javascript margin-vertical-px"> // colors: 'green', 'blue', 'violet', 'red', 'orange', | |||||
// 'yellow', 'light-blue', 'light-green', 'purple', | |||||
// 'magenta', 'grey', 'dark-grey'</code></pre> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
@@ -193,7 +197,12 @@ | |||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
<pre><code class="hljs javascript margin-vertical-px"> chart.parent.addEventListener('data-select', (e) => { | |||||
<pre><code class="hljs javascript margin-vertical-px"> ... | |||||
type: 'bar', // Bar Chart specific properties: | |||||
is_navigable: 1, // Navigate across bars; default 0 | |||||
... | |||||
chart.parent.addEventListener('data-select', (e) => { | |||||
update_moon_data(e.index); // e contains index and value of current datapoint | update_moon_data(e.index); // e contains index and value of current datapoint | ||||
});</code></pre> | });</code></pre> | ||||
</div> | </div> | ||||
@@ -1,6 +1,6 @@ | |||||
{ | { | ||||
"name": "frappe-charts", | "name": "frappe-charts", | ||||
"version": "0.0.3", | |||||
"version": "0.0.4", | |||||
"description": "https://frappe.github.io/charts", | "description": "https://frappe.github.io/charts", | ||||
"main": "dist/frappe-charts.min.cjs.js", | "main": "dist/frappe-charts.min.cjs.js", | ||||
"module": "dist/frappe-charts.min.esm.js", | "module": "dist/frappe-charts.min.esm.js", | ||||