Highcharts Demo

author(s): Torstein Hønsi

by Madalina Taina

HTML

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

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

CSS

.highcharts-tooltip h3 {
    margin: 0.3em 0;
}

JavaScript

Highcharts.chart('container', {

    chart: {
        type: 'bubble',
        plotBorderWidth: 1,
        zoomType: 'xy'
    },

    legend: {
        enabled: false
    },

    title: {
        text: 'Adult crypto communities by #of Telegram members'
    },


    xAxis: {
        gridLineWidth: 1,
        title: {
            text: 'Telegram members'
        },
        labels: {
            //format: '{point.name}'
        },
        plotLines: [{
            color: 'black',
            dashStyle: 'dot',
            width: 2,
            value: 65,
            label: {
                rotation: 0,
                y: 15,
                style: {
                    fontStyle: 'italic'
                },
            },
            zIndex: 3
        }]
    },

    yAxis: {
        startOnTick: false,
        endOnTick: false,
        title: {
            text: 'Project'
        },
        labels: {
            //format: '{value}'
        },
        maxPadding: 0.2,
        plotLines: [{
            color: 'black',
            dashStyle: 'dot',
            width: 2,
            value: 50,
            label: {
                align: 'right',
                style: {
                    fontStyle: 'italic'
                },
                text: '',
                x: -10
            },
            zIndex: 3
        }]
    },

    plotOptions: {
        series: {
            dataLabels: {
                enabled: true,
                format: '{}'
            }
        }
    },

    series: [{
        data: [
            { x: 10, y: 11, z: 53,name: 'Sexcoin' },
            { x: 15, y: 11, z: 9, name: 'Titcoin' },
            { x: 20, y: 11, z: 2240, name: 'Live Stars'},
            { x: 25, y: 11, z: 247, name: 'TittieCoin' },
            { x: 30, y: 11, z: 1928, name: 'BunnyToken' },
            { x: 35, y: 11, z: 712, name: 'Model-X'},
            { x: 40, y: 11, z: 7163, name: 'Vice Industry Token' },
            { x: 45, y: 11, z: 436, name: 'SpankChain' },
     ...