JSFiddle - React, Tailwind, and code Playground

by Manuel GarcĂ­a

HTML

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

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

JavaScript

$(function () {
    $('#container').highcharts({
        chart: {
            type: 'column',
        },
        title: {
            text: 'Stacked column chart'
        },
        colors: ['#FF6600','#FF9900','#FFCC00','#009900','#0072FF','#AAE0E0','#cccccc'],
        xAxis: {
            categories: ['10/29/14','10/30/14','10/31/14','11/01/14','11/02/14','11/03/14','11/04/14','11/05/14','11/06/14','11/07/14','11/08/14']
        },
        yAxis: {
            min: 0,
            title: {
                text: 'Global hits - Summary'
            },
            stackLabels: {
                enabled: false,
                style: {
                    fontWeight: 'bold',
                    color: (Highcharts.theme && Highcharts.theme.textColor) || 'gray'
                }
            }
        },
        legend: {
            align: 'right',
            x: -70,
            verticalAlign: 'top',
            y: 20,
            floating: true,
            backgroundColor: (Highcharts.theme && Highcharts.theme.background2) || 'white',
            borderColor: '#CCC',
            borderWidth: 1,
            shadow: false
        },
        tooltip: {
            formatter: function () {
                return '<b>' + this.x + '</b><br/>' +
                    this.series.name + ': ' + this.y + '<br/>' +
                    'Total: ' + this.point.stackTotal;
            }
        },
        plotOptions: {
            column: {
                stacking: 'normal',
                dataLabels: {
                    enabled: false,
                    color: (Highcharts.theme && Highcharts.theme.dataLabelsColor) || 'white',
                    style: {
                        textShadow: '0 0 3px black, 0 0 3px black'
                    },
                    formatter:function() {
    			        if(this.y != 0) {
      				        return this.y;
    			        }
  			        }
                }
            },
            series: {
                pointPadding: 0,
      ...