Browse Source

rebuild, update to 0.0.4

tags/1.2.0
pratu16x7 7 years ago
parent
commit
065fc297f8
7 changed files with 30 additions and 5 deletions
  1. +1
    -1
      .babelrc
  2. +1
    -1
      README.md
  3. +8
    -0
      dist/frappe-charts.min.cjs.js
  4. +8
    -0
      dist/frappe-charts.min.esm.js
  5. +1
    -1
      docs/assets/js/index.js
  6. +10
    -1
      docs/index.html
  7. +1
    -1
      package.json

+ 1
- 1
.babelrc View File

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


+ 1
- 1
README.md 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


+ 8
- 0
dist/frappe-charts.min.cjs.js 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,


+ 8
- 0
dist/frappe-charts.min.esm.js 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,


+ 1
- 1
docs/assets/js/index.js 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(


+ 10
- 1
docs/index.html 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>


+ 1
- 1
package.json 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",


Loading…
Cancel
Save