JSFiddle - React, Tailwind, and code Playground
HTML
<form action='https://image-charts.com/chart' method='POST' id='post_form'>
<input type='hidden' name='cht' value='bhs' />
<input type='hidden' name='chtt' value='This is my chart' />
<input type='hidden' name='chs' value='300x200' />
<input type='hidden' name='chxt' value='x,y' />
<input type='hidden' name='chxl' value='1:|Label1|Label2|Label3' />
<input type='hidden' name='chd' value='t:5,3,8|10,13,17|25,15,35' />
<input type='hidden' name='chl' value='x|y|z|a|b|c|l|m|n' />
<input type='submit' />
</form>
JavaScript
// Send the POST when the page is loaded,
// which will replace this whole page with the retrieved chart.
var frm = document.getElementById('post_form');
if (frm) {
frm.submit();
}