JSFiddle - React, Tailwind, and code Playground

by AbhishekRohan

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: 300px"></div>

JavaScript

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

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

    xAxis: {
        categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
    },
			legend : {
						//useHTML : "true",
							symbolHeight : 20,
							symbolWidth : 20,
							symbolRadius : 10,
							symbolPadding : 20,
							itemStyle : {
								color : '#555555',
								fontSize : '34px',
								fontWeight : 'normal'
							},
							itemDistance : 30,
							itemMarginTop : 14,
							labelFormatter : function() {
              console.log(this);
								var name = this.name;
						
								return '<span style="font-size:60px">' + "•  " + '</span> ' + '<span style="font-size:30px;font-weight:normal; color :#555555">' + name + " " + '</span>';
							}
					},
    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)'
    },
    ]
    
    
});