JSFiddle - React, Tailwind, and code Playground

by Salehin Modasiya

HTML

<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://highcharts.github.io/pattern-fill/pattern-fill-v2.js"></script>

<div id="container" style="height:500px"></div>

JavaScript

$('#container').highcharts({
    chart: {
    	type: 'column'
    },
    defs: {
        patterns: [{
            'id': 'custom-pattern',
            'path': {
                d: 'M 10 0 L 0 0 M 10 0 L 0 0 M 10 0 L 0 0',
	            stroke: Highcharts.getOptions().colors[0],
    	        strokeWidth: 1
            }
        }]
    },

    title: {
        text: 'Pattern fill plugin demo'
    },

    xAxis: {
        categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
    },

    series: [{
        type: 'area',
        data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4],
        fillColor: 'url(#custom-pattern)'
    }]
    
});