Sfoglia il codice sorgente

[fix] heatmap data

tags/1.2.0
pratu16x7 7 anni fa
parent
commit
45e539fdc0
7 ha cambiato i file con 18 aggiunte e 22 eliminazioni
  1. +3
    -3
      .github/ISSUE_TEMPLATE.md
  2. +1
    -1
      dist/frappe-charts.min.js
  3. +1
    -1
      dist/frappe-charts.min.js.map
  4. +1
    -1
      docs/assets/js/frappe-charts.min.js
  5. +1
    -1
      docs/assets/js/frappe-charts.min.js.map
  6. +10
    -14
      docs/assets/js/index.js
  7. +1
    -1
      src/scripts/charts/Heatmap.js

+ 3
- 3
.github/ISSUE_TEMPLATE.md Vedi File

@@ -1,10 +1,10 @@
#### Expected Behviour
#### Expected Behaviour

#### Actual Behaviour

#### Steps to Reproduce:
*
*

NOTE: Add a GIF/Screenshot if required.

Frappé Charts version:
Frappé Charts version:

+ 1
- 1
dist/frappe-charts.min.js
File diff soppresso perché troppo grande
Vedi File


+ 1
- 1
dist/frappe-charts.min.js.map
File diff soppresso perché troppo grande
Vedi File


+ 1
- 1
docs/assets/js/frappe-charts.min.js
File diff soppresso perché troppo grande
Vedi File


+ 1
- 1
docs/assets/js/frappe-charts.min.js.map
File diff soppresso perché troppo grande
Vedi File


+ 10
- 14
docs/assets/js/index.js Vedi File

@@ -373,24 +373,20 @@ Array.prototype.slice.call(
el.addEventListener('click', (e) => {
let btn = e.target;
let mode = btn.getAttribute('data-mode');
let discrete_domains = 0;

if(mode === 'discrete') {
new Chart({
parent: "#chart-heatmap",
data: heatmap_data,
type: 'heatmap',
height: 100,
discrete_domains: 1 // default 0
});
} else {
new Chart({
parent: "#chart-heatmap",
data: heatmap_data,
type: 'heatmap',
height: 100
});
discrete_domains = 1;
}

new Chart({
parent: "#chart-heatmap",
data: heatmap_data,
type: 'heatmap',
height: 115,
discrete_domains: discrete_domains
});

Array.prototype.slice.call(
btn.parentNode.querySelectorAll('button')).map(el => {
el.classList.remove('active');


+ 1
- 1
src/scripts/charts/Heatmap.js Vedi File

@@ -48,7 +48,7 @@ export default class Heatmap extends BaseChart {
}

set_width() {
this.base_width = (this.no_of_cols) * 12;
this.base_width = (this.no_of_cols + 3) * 12 ;

if(this.discrete_domains) {
this.base_width += (12 * 12);


Caricamento…
Annulla
Salva