Exemplo n.º 1
0
        public ActionResult SongsPerVocaloidOverTime(DateTime?cutoff, ArtistType[] vocalistTypes = null, int startYear = 2007)
        {
            if (vocalistTypes == null)
            {
                vocalistTypes = new[] { ArtistType.Vocaloid, ArtistType.UTAU, ArtistType.CeVIO, ArtistType.OtherVoiceSynthesizer }
            }
            ;

            var data = queries.SongsPerVocaloidOverTime(cutoff, vocalistTypes, startYear);

            var dataSeries = data.Select(ser => new Series {
                Name = ser.Item1.Names.SortNames.English,
                Data = Series.DateData(ser.Item2, p => p.Date, p => p.Count)
            }).ToArray();

            return(AreaChart("Songs per voicebank over time", dataSeries));
        }