Pārlūkot izejas kodu

feat: labels will auto fit wrapper width

tags/1.2.3
Shivam Mishra pirms 6 gadiem
vecāks
revīzija
94c835115b
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. +3
    -0
      src/js/charts/AggregationChart.js

+ 3
- 0
src/js/charts/AggregationChart.js Parādīt failu

@@ -67,6 +67,9 @@ export default class AggregationChart extends BaseChart {
let divisor = Math.floor(
(this.width - getExtraWidth(this.measures))/barWidth
);
if (this.legendTotals.length < divisor) {
barWidth = this.width/this.legendTotals.length;
}
if(count > divisor) {
count = 0;
y += 20;


Notiek ielāde…
Atcelt
Saglabāt