rebuild, update to 0.0.4

This commit is contained in:
pratu16x7 2017-11-07 02:03:20 +05:30
parent 04720166f1
commit 065fc297f8
7 changed files with 30 additions and 5 deletions

View File

@ -1,7 +1,7 @@
{
"presets": [
["latest", {
"env": {
"es2015": {
"modules": false
}
}]

View File

@ -41,7 +41,7 @@
* ...or include within your 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

View File

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

View File

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

View File

@ -90,7 +90,7 @@ let type_chart = new Chart({
data: type_data,
type: 'bar',
height: 250,
// is_series: 1
is_series: 1
});
Array.prototype.slice.call(

View File

@ -96,6 +96,10 @@
<p class="text-muted">
<a target="_blank" href="http://www.storytellingwithdata.com/blog/2011/07/death-to-pie-charts">Why Percentage?</a>
</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>
@ -193,7 +197,12 @@
</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
});</code></pre>
</div>

View File

@ -1,6 +1,6 @@
{
"name": "frappe-charts",
"version": "0.0.3",
"version": "0.0.4",
"description": "https://frappe.github.io/charts",
"main": "dist/frappe-charts.min.cjs.js",
"module": "dist/frappe-charts.min.esm.js",