JSFiddle - React, Tailwind, and code Playground

Waking - The interval between checking phones for the first time after waking and for the last time before going to sleep

by pepperdigital

HTML

<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>

<div id="container" style="min-width: 310px; max-width: 800px; height: 400px; margin: 0 auto"></div>

JavaScript

Highcharts.chart('container', {
    chart: {
        type: 'bar'
    },
        credits: {
        enabled: false
    },
     exporting: {
        enabled: false
    },

    colors: ['#86BC25', '#43B02A', '#046A38', '#0097A9', '#62B5E5', 
   '#00A3E0', '#0076A8', '#012169', '#2C5234', '#C4D600'],
    title: {
        text: 'After waking'
    },
    xAxis: {

        categories: [
'Immediately',
'Within 5 minutes',
'Within 15 minutes',
'Within 30 minutes',
'Within an hour',
'Within two to three hours',
'Longer than three hours'
        ]
    },

    yAxis: {
        min: 0,
    max: 100,
        labels: {
            format: '{value}%'
        },
        title: {
            text: ''
        },
        title: {
            enabled: false
        }
    },
    
    legend: {
        enabled: false
    },
    plotOptions: {
        series: {
            stacking: 'normal'
        }
    },
		tooltip: {
            valueSuffix: '%'
        },   
    series: [{
        name: 'Data',
        data: [
{y:10, color: '#004F59'},
{y:34, color: '#007680'},
{y:55, color: '#0097A9'}, 
{y:71, color: '#00ABAB'}, 
{y:87, color: '#6FC2B4'}, 
{y:94, color: '#9DD4CF'}, 
{y:99, color: '#DDEFE8'}
        ]
    }]
});