Exemple #1
0
        public static void AddDefaultSerie(BaseChart chart, SerieType serieType, string serieName)
        {
            switch (serieType)
            {
            case SerieType.Line: AddDefaultLineSerie(chart, serieName); break;

            case SerieType.Bar: AddDefaultBarSerie(chart, serieName); break;

            case SerieType.Pie: AddDefaultPieSerie(chart, serieName); break;

            case SerieType.Radar: AddDefaultRadarSerie(chart, serieName); break;

            case SerieType.Scatter: AddDefaultScatterSerie(chart, serieName); break;

            case SerieType.EffectScatter: AddDefaultEffectScatterSerie(chart, serieName); break;

            case SerieType.Heatmap: AddDefaultHeatmapSerie(chart, serieName); break;

            case SerieType.Liquid: AddDefaultLiquidSerie(chart, serieName); break;

            case SerieType.Gauge: AddDefaultGaugeSerie(chart, serieName); break;

            case SerieType.Ring: AddDefaultRingSerie(chart, serieName); break;

            case SerieType.Candlestick: AddDefaultCandlestickSerie(chart, serieName); break;

            case SerieType.Custom: chart.AddDefaultCustomSerie(serieName); break;

            default: Debug.LogError("AddDefaultSerie: not support serieType yet:" + serieType); break;
            }
        }