12 [DisallowMultipleComponent]
18 var chart = gameObject.GetComponent<
LineChart>();
21 chart = gameObject.AddComponent<
LineChart>();
22 chart.SetSize(580, 300);
24 chart.title.show =
true;
25 chart.title.text =
"Line Simple";
27 chart.tooltip.show =
true;
28 chart.legend.show =
false;
30 chart.
xAxes[0].show =
true;
31 chart.xAxes[1].show =
false;
32 chart.yAxes[0].show =
true;
33 chart.yAxes[1].show =
false;
37 chart.xAxes[0].splitNumber = 10;
38 chart.xAxes[0].boundaryGap =
true;
43 for (
int i = 0; i < 2000; i++)
45 chart.AddXAxisData(
"x" + i);
46 chart.AddData(0, Random.Range(10, 20));
47 chart.AddData(1, Random.Range(10, 20));