IEnumerator BarMutilSerie() { chart.GetChartComponent <Title>().subText = "多条柱状图"; float now = serie.barWidth - 0.35f; while (serie.barWidth > 0.35f) { serie.barWidth -= now * Time.deltaTime; chart.RefreshChart(); yield return(null); } serie2 = chart.AddSerie <Bar>("Bar2"); serie2.lineType = LineType.Normal; serie2.barWidth = 0.35f; for (int i = 0; i < m_DataNum; i++) { chart.AddData(1, UnityEngine.Random.Range(20, 90)); } yield return(new WaitForSeconds(1)); }