Exemplo n.º 1
0
        public static string DrawPlotSorted(string name, List <KeyValuePair <string, double> > values)
        {
            var tmpBarPlot = new ColumnPlot(name, values.Select(x => x.Key).ToArray());

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

            return(tmpBarPlot.DrawPlot());
        }
Exemplo n.º 2
0
        public static string DrawPlot(string name, Dictionary <string, double> dict)
        {
            var tmpBarPlot = new ColumnPlot(name, dict.Keys.ToArray());

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

            return(tmpBarPlot.DrawPlot());
        }