JSFiddle - React, Tailwind, and code Playground

Short-form vs Long-form video viewing among, by age group

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; height: 400px; margin: 0 auto"></div>

JavaScript

Highcharts.chart('container', {
    chart: {
        type: 'bar'
    },
            credits: {
        enabled: false
    },
     exporting: {
        enabled: false
    },
    colors: ['#046A38', '#0097A9', '#62B5E5', 
   '#00A3E0', '#0076A8', '#012169', '#2C5234', '#C4D600','#012169','#00A3E0',],
    title: {
        text: ''
    },
     tooltip: {
        formatter: function () {
            return this.key + '<br><b>' + this.series.name +
                '<br><b>' + this.y + '%</b>';
        }
    },
    xAxis: {
        categories: [
'Contactless payments app offered by your bank',
'None of these',
'PayPal app (Scan and pay)',
'Pay by SMS',
'Scan and pay app offered by a retailer',
'Do not know',
'Android Pay',
'Tap and pay solution offered by a mobile operator',
'Apple Pay',
'Samsung Pay'
]
    },
    yAxis: {
        min: 0,
        max: 100,
        labels: {
            format: '{value}%'
        },
        title: {
            text: ''
        }
    },
    legend: {
        enabled: false
    },

 
    series: [
        {
        name: '',
        data: [
45,
36,
19,
9,
4,
4,
2,
2,
2,
2
        ]
    }
    ]
});