function make_dataset(coin, coin_price) {
        let dataset = {}
        border_color = calculate_border_color(coin_price)
        bg_color = 'rgb(200,200,200)'
        dataset['label'] = coin 
        dataset['backgroundColor'] = border_color
        dataset['borderColor'] = border_color
        dataset['data'] = coin_price
        dataset['borderJoinStyle'] = 'round'
        dataset['borderWidth'] = 1.5
        dataset['segment'] = {
            borderColor: ctx => up(ctx, 'rgb(0,255,0)') || down(ctx, 'rgb(255,0,0)')
        }
        return dataset
    }
// A function to easily make a dataset based on data
A function to easily make a dataset based on data
A function to easily make a dataset based on data
function make_dataset(coin, coin_price) {
        let dataset = {}
        border_color = calculate_border_color(coin_price)
        bg_color = 'rgb(200,200,200)'
        dataset['label'] = coin 
        dataset['backgroundColor'] = border_color
        dataset['borderColor'] = border_color
        dataset['data'] = coin_price
        dataset['borderJoinStyle'] = 'round'
        dataset['borderWidth'] = 1.5
        dataset['segment'] = {
            borderColor: ctx => up(ctx, 'rgb(0,255,0)') || down(ctx, 'rgb(255,0,0)')
        }
        return dataset
    }
function make_dataset ( coin , coin_price ) { let dataset = { } border_color = calculate_border_color ( coin_price ) bg_color = 'rgb(200,200,200)' dataset [ 'label' ] = coin dataset [ 'backgroundColor' ] = border_color dataset [ 'borderColor' ] = border_color dataset [ 'data' ] = coin_price dataset [ 'borderJoinStyle' ] = 'round' dataset [ 'borderWidth' ] = 1.5 dataset [ 'segment' ] = { borderColor : ctx => up ( ctx , 'rgb(0,255,0)' ) || down ( ctx , 'rgb(255,0,0)' ) } return dataset }
A function to easily make a dataset based on data
A function to easily make a dataset based on data