chore: update build
This commit is contained in:
parent
e0c1bde2ff
commit
ee38b15f89
9
dist/frappe-charts.esm.js
vendored
9
dist/frappe-charts.esm.js
vendored
@ -1492,7 +1492,7 @@ class BaseChart {
|
|||||||
showLegend: 1, // calculate
|
showLegend: 1, // calculate
|
||||||
isNavigable: options.isNavigable || 0,
|
isNavigable: options.isNavigable || 0,
|
||||||
animate: (typeof options.animate !== 'undefined') ? options.animate : 1,
|
animate: (typeof options.animate !== 'undefined') ? options.animate : 1,
|
||||||
truncateLegends: options.truncateLegends || 0
|
truncateLegends: options.truncateLegends || 1
|
||||||
};
|
};
|
||||||
|
|
||||||
this.measures = JSON.parse(JSON.stringify(BASE_MEASURES));
|
this.measures = JSON.parse(JSON.stringify(BASE_MEASURES));
|
||||||
@ -1830,7 +1830,7 @@ class AggregationChart extends BaseChart {
|
|||||||
let count = 0;
|
let count = 0;
|
||||||
let y = 0;
|
let y = 0;
|
||||||
this.legendTotals.map((d, i) => {
|
this.legendTotals.map((d, i) => {
|
||||||
let barWidth = 110;
|
let barWidth = 150;
|
||||||
let divisor = Math.floor(
|
let divisor = Math.floor(
|
||||||
(this.width - getExtraWidth(this.measures))/barWidth
|
(this.width - getExtraWidth(this.measures))/barWidth
|
||||||
);
|
);
|
||||||
@ -1842,13 +1842,14 @@ class AggregationChart extends BaseChart {
|
|||||||
y += 20;
|
y += 20;
|
||||||
}
|
}
|
||||||
let x = barWidth * count + 5;
|
let x = barWidth * count + 5;
|
||||||
|
let label = this.config.truncateLegends ? truncateString(s.labels[i], barWidth/10) : s.labels[i];
|
||||||
let dot = legendDot(
|
let dot = legendDot(
|
||||||
x,
|
x,
|
||||||
y,
|
y,
|
||||||
5,
|
5,
|
||||||
this.colors[i],
|
this.colors[i],
|
||||||
`${s.labels[i]}: ${d}`,
|
`${label}: ${d}`,
|
||||||
this.config.truncateLegends
|
false
|
||||||
);
|
);
|
||||||
this.legendArea.appendChild(dot);
|
this.legendArea.appendChild(dot);
|
||||||
count++;
|
count++;
|
||||||
|
|||||||
2
dist/frappe-charts.min.cjs.js
vendored
2
dist/frappe-charts.min.cjs.js
vendored
File diff suppressed because one or more lines are too long
2
dist/frappe-charts.min.cjs.js.map
vendored
2
dist/frappe-charts.min.cjs.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/frappe-charts.min.esm.js
vendored
2
dist/frappe-charts.min.esm.js
vendored
File diff suppressed because one or more lines are too long
2
dist/frappe-charts.min.esm.js.map
vendored
2
dist/frappe-charts.min.esm.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/frappe-charts.min.iife.js
vendored
2
dist/frappe-charts.min.iife.js
vendored
File diff suppressed because one or more lines are too long
2
dist/frappe-charts.min.iife.js.map
vendored
2
dist/frappe-charts.min.iife.js.map
vendored
File diff suppressed because one or more lines are too long
2
docs/assets/js/frappe-charts.min.js
vendored
2
docs/assets/js/frappe-charts.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user