function scaling(n, choice) {
    let size = 0;
    if (choice === 'Confirmed') {
        if (n === 0) {
            size = 0;
        } else if (n < 5000) {
            size = 1;
        } else if (n < 10000) {
            size = 3;
        } else if (n < 50000) {
            size = 5;
        } else if (n < 100000) {
            size = 8;
        } else if (n < 500000) {
            size = 10;
        } else if (n < 1000000) {
            size = 20;
        } else if (n < 2000000) {
            size = 30;
        } else {
            size = 50;
        }
    } else if (choice === 'Deaths') {
        if (n === 0) {
            size = 0;
        } else if (n < 100) {
            size = 1;
        } else if (n < 500) {
            size = 3;
        } else if (n < 1000) {
            size = 5;
        } else if (n < 5000) {
            size = 10;
        } else if (n < 10000) {
            size = 15;
        } else if (n < 50000) {
            size = 20;
        } else if (n < 100000) {
            size = 25;
        } else {
            size = 35;
        }
    } else if (choice === 'Daily_Confirmed') {
        if (n === 0) {
            size = 0;
        } else if (n < 100) {
            size = 1;
        } else if (n < 500) {
            size = 3;
        } else if (n < 1000) {
            size = 5;
        } else if (n < 2000) {
            size = 10;
        } else if (n < 5000) {
            size = 15;
        } else if (n < 10000) {
            size = 20;
        } else if (n < 20000) {
            size = 25;
        } else if (n < 50000) {
            size = 30;
        } else {
            size = 50;
        }
    } else {
        if (n === 0) {
            size = 0;
        } else if (n < 10) {
            size = 1;
        } else if (n < 30) {
            size = 5;
        } else if (n < 50) {
            size = 7;
        } else if (n < 100) {
            size = 10;
        } else if (n < 200) {
            size = 15;
        } else if (n < 500) {
            size = 20;
        } else if (n < 1000) {
            size = 25;
        } else {
            size = 30;
        }
    }
    return size;
}
// select the size of the dot
select the size of the dot
select the size of the dot
function scaling(n, choice) {
    let size = 0;
    if (choice === 'Confirmed') {
        if (n === 0) {
            size = 0;
        } else if (n < 5000) {
            size = 1;
        } else if (n < 10000) {
            size = 3;
        } else if (n < 50000) {
            size = 5;
        } else if (n < 100000) {
            size = 8;
        } else if (n < 500000) {
            size = 10;
        } else if (n < 1000000) {
            size = 20;
        } else if (n < 2000000) {
            size = 30;
        } else {
            size = 50;
        }
    } else if (choice === 'Deaths') {
        if (n === 0) {
            size = 0;
        } else if (n < 100) {
            size = 1;
        } else if (n < 500) {
            size = 3;
        } else if (n < 1000) {
            size = 5;
        } else if (n < 5000) {
            size = 10;
        } else if (n < 10000) {
            size = 15;
        } else if (n < 50000) {
            size = 20;
        } else if (n < 100000) {
            size = 25;
        } else {
            size = 35;
        }
    } else if (choice === 'Daily_Confirmed') {
        if (n === 0) {
            size = 0;
        } else if (n < 100) {
            size = 1;
        } else if (n < 500) {
            size = 3;
        } else if (n < 1000) {
            size = 5;
        } else if (n < 2000) {
            size = 10;
        } else if (n < 5000) {
            size = 15;
        } else if (n < 10000) {
            size = 20;
        } else if (n < 20000) {
            size = 25;
        } else if (n < 50000) {
            size = 30;
        } else {
            size = 50;
        }
    } else {
        if (n === 0) {
            size = 0;
        } else if (n < 10) {
            size = 1;
        } else if (n < 30) {
            size = 5;
        } else if (n < 50) {
            size = 7;
        } else if (n < 100) {
            size = 10;
        } else if (n < 200) {
            size = 15;
        } else if (n < 500) {
            size = 20;
        } else if (n < 1000) {
            size = 25;
        } else {
            size = 30;
        }
    }
    return size;
}
function scaling ( n , choice ) { let size = 0 ; if ( choice === 'Confirmed' ) { if ( n === 0 ) { size = 0 ; } else if ( n < 5000 ) { size = 1 ; } else if ( n < 10000 ) { size = 3 ; } else if ( n < 50000 ) { size = 5 ; } else if ( n < 100000 ) { size = 8 ; } else if ( n < 500000 ) { size = 10 ; } else if ( n < 1000000 ) { size = 20 ; } else if ( n < 2000000 ) { size = 30 ; } else { size = 50 ; } } else if ( choice === 'Deaths' ) { if ( n === 0 ) { size = 0 ; } else if ( n < 100 ) { size = 1 ; } else if ( n < 500 ) { size = 3 ; } else if ( n < 1000 ) { size = 5 ; } else if ( n < 5000 ) { size = 10 ; } else if ( n < 10000 ) { size = 15 ; } else if ( n < 50000 ) { size = 20 ; } else if ( n < 100000 ) { size = 25 ; } else { size = 35 ; } } else if ( choice === 'Daily_Confirmed' ) { if ( n === 0 ) { size = 0 ; } else if ( n < 100 ) { size = 1 ; } else if ( n < 500 ) { size = 3 ; } else if ( n < 1000 ) { size = 5 ; } else if ( n < 2000 ) { size = 10 ; } else if ( n < 5000 ) { size = 15 ; } else if ( n < 10000 ) { size = 20 ; } else if ( n < 20000 ) { size = 25 ; } else if ( n < 50000 ) { size = 30 ; } else { size = 50 ; } } else { if ( n === 0 ) { size = 0 ; } else if ( n < 10 ) { size = 1 ; } else if ( n < 30 ) { size = 5 ; } else if ( n < 50 ) { size = 7 ; } else if ( n < 100 ) { size = 10 ; } else if ( n < 200 ) { size = 15 ; } else if ( n < 500 ) { size = 20 ; } else if ( n < 1000 ) { size = 25 ; } else { size = 30 ; } } return size ; }
select the size of the dot
select the size of the dot