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:
parent
eafd2f901e
commit
9a384857fd
1 changed files with 3 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue