0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00

Updated bar thickness of Paid mix chart

This commit is contained in:
Peter Zimon 2022-05-12 14:33:23 +02:00
parent eafd2f901e
commit 9a384857fd

View file

@ -202,10 +202,10 @@ export default class PaidBreakdown extends Component {
const canceledData = stats.map(stat => -stat.negativeDelta);
let barThickness = 5;
if (newData.length >= 30 + 1) {
if (newData.length >= 30 + 1 && newData.length < 90) {
barThickness = 3.5;
} else if (newData.length >= 90 + 1) {
barThickness = 1;
} else if (newData.length >= 90) {
barThickness = 1.5;
}
return {