The DrawCharts class contains some premade charts and pie charts so that drawing charts is as easy as possible. The most easy way of drawing a chart with custom data contains only 2 lines of code. No further initialization is required:
void Update()
{
DrawCharts.premadeChart0.AddValue(myDataPointValue); //adding data to the chart
DrawCharts.premadeChart0.Draw(); //drawing the chart
}
Though if the premade charts are not enough then further charts can be created by declaring and constructing them:
ChartDrawing myChart;
void Start()
{
myChart = new ChartDrawing();
}
void Update()
{
myChart.AddValue(myDataPointValue); //adding data to the chart
myChart.Draw(); //drawing the chart
}