JSFiddle - React, Tailwind, and code Playground

HTML

<!DOCTYPE html><html><head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Pattern</title>
<style>
html {
	margin: 0px;
}
body {
	margin: 20px 30px;
}
#realchart {
	width: 850px;
	height: 550px;
    border: 1px solid lightgray;
    margin-bottom: 20px;
}
</style>
<link href="https://unpkg.com/realchart/realchart-style.css" rel="stylesheet" crossorigin="anonymous">
<script type="text/javascript" src="https://unpkg.com/realchart/index"></script>
<script type="text/javascript">
	window.addEventListener('DOMContentLoaded', function () {
		try {
			init();
		} catch (err) {
			alert(err);
			console.error(err);
		}
	});	
	
</script>

  <script>
    var realChartLic = 'upVcPE+wPOkOR/egW8JuxkM/nBOseBrflwxYpzGZyYkhw7qfHRQ+GiF0lY62mJi5KBwoSJHOA48O5+/xJSE3LhLB4LkQ8rWX0QeIbtyyIEGTFVqWmNPdyQ==';
  </script>
</head>
<body>
	<div id="realchart"></div>
	

		 </body></html>

JavaScript

/**
 * @demo
 *
 */
const config = {
  general: {},
  title: 'Pattern Fill',
  asset: [{
    type: 'pattern',
    id: 'pattern-0',
    pattern: 0,
    style: {
      stroke: 'black'
    }
  }, {
    type: 'pattern',
    id: 'pattern-1',
    pattern: 1
  }, {
    type: 'pattern',
    id: 'pattern-2',
    pattern: 2
  }, {
    type: 'pattern',
    id: 'pattern-3',
    pattern: 3
  }, {
    type: 'pattern',
    id: 'pattern-4',
    pattern: 4
  }, {
    type: 'pattern',
    id: 'pattern-5',
    pattern: 5
  }, {
    type: 'pattern',
    id: 'pattern-6',
    pattern: 6
  }, {
    type: 'pattern',
    id: 'pattern-7',
    pattern: 7
  }, {
    type: 'pattern',
    id: 'pattern-8',
    pattern: 8
  }, {
    type: 'pattern',
    id: 'pattern-9',
    pattern: 9
  }, {
    type: 'pattern',
    id: 'pattern-10',
    pattern: 10
  }, {
    type: 'pattern',
    id: 'pattern-11',
    pattern: 11
  }, {
    type: 'pattern',
    id: 'pattern-12',
    pattern: 12
  }],
  legend: true,
  body: {
    style: {
      stroke: 'none'
    }
  },
  xAxis: {
    title: {
      text: '수정구'
    }
  },
  yAxis: {
    title: {
      text: '전체 인구수'
    }
  },
  tooltip: false,
  series: [{
    pointLabel: {
      visible: true,
      effect: 'outline',
      // 'background',
      style: {}
    },
    data: [['신흥1동', 12904], ['신흥2동', 19796], ['신흥3동', 10995], ['태평1동', 14625], ['태평2동', 14627], ['태평3동', 12649], ['태평4동', 12279]],
    style: {
      fill: 'url(#pattern-0)'
    }
  }, {
    type: 'pie',
    centerX: '80%',
    centerY: '40%',
    radius: '30%',
    legendByPoint: true,
    pointStyleCallback: ({
      index
    }) => {
      return {
        fill: `url(#pattern-${index})`,
        stroke: '#FFF',
        strokeWidth: '4px'
      };
    },
    data: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  }]
};
let animate;
let chart;
function init() {
  console.log(RealChart.getVersion());
  // RealChart.setDebugging(true);
  RealChart.setLogging(true);
  chart = RealChart.createChart(document,...