JSFiddle - React, Tailwind, and code Playground

by danmana

HTML

<script src="http://highcharts.com/js/testing.js"></script>
endOnTick = false
<div id="container1" style="height: 400px"></div>
<div id="container2" style="height: 400px"></div>

JavaScript

new Highcharts.Chart({
    title: {
        text: 'Small numbers'
    },
    chart: {
        renderTo: 'container1',
        defaultSeriesType: 'column',
        borderWidth: 1
    },
    xAxis: {
        allowDecimals: false
    },
    yAxis: {
        allowDecimals: false,
        endOnTick: false
    },

    series: [{
        data: [1, 0, 0, 1, 1, 0, 1]}]
});

new Highcharts.Chart({
    title: {
        text: 'Large numbers'
    },
    chart: {
        renderTo: 'container2',
        defaultSeriesType: 'column',
        borderWidth: 1
    },
    xAxis: {
        allowDecimals: false
    },
    yAxis: {
        allowDecimals: false,
        endOnTick: false
    },

    series: [{
        data: [55, 0, 0, 20, 37, 0, 1]}]
});