Example #1
0
        public static string DrawPlotSorted(string name, List <KeyValuePair <string, double> > values)
        {
            var tmpBarPlot = new BarPlot(name, values.Select(x => x.Key).ToArray());

            foreach (var value in values)
            {
                tmpBarPlot.AddValue(value.Key, value.Value);
            }

            return(tmpBarPlot.DrawPlot());
        }
Example #2
0
        public static string DrawPlot(string name, Dictionary <string, double> dict)
        {
            var tmpBarPlot = new BarPlot(name, dict.Keys.ToArray());

            foreach (var key in dict.Keys)
            {
                tmpBarPlot.AddValue(key, dict[key]);
            }

            return(tmpBarPlot.DrawPlot());
        }