Exemple #1
0
        public static void AddDefaultRadarSerie(BaseChart chart, string serieName)
        {
            if (chart.radars.Count == 0)
            {
                chart.AddRadar(Radar.defaultRadar);
            }
            var serie = chart.AddSerie(SerieType.Radar, serieName);

            serie.symbol.show         = true;
            serie.symbol.type         = SerieSymbolType.EmptyCircle;
            serie.symbol.size         = 4;
            serie.symbol.selectedSize = 6;
            serie.showDataName        = true;
            List <float> data = new List <float>();

            for (int i = 0; i < 5; i++)
            {
                data.Add(Random.Range(20, 90));
            }
            chart.AddData(serie.index, data, "legendName");
        }