createPieChart function

String createPieChart(
  1. PieChartProps props
)

Creates a pie chart and returns it rendered as a multi-line string.

Implementation

String createPieChart(PieChartProps props) {
  return renderChart(
    props.width,
    props.height,
    (screen, area) => renderPieChart(screen, area, props),
  );
}