createBarChart function
Creates a bar chart and returns it rendered as a multi-line string.
Implementation
String createBarChart(BarChartProps props) {
return renderChart(
props.width,
props.height,
(screen, area) => renderBarChart(screen, area, props),
);
}