//public void RenderChart1(bool isTopMost) //{ // Chart1.colorSet.Add(Color.FromArgb(253, 171, 98)); // Chart1.colorSet.Add(Color.FromArgb(222, 142, 160)); // Chart1.colorSet.Add(Color.FromArgb(201, 123, 203)); // Chart1.colorSet.Add(Color.FromArgb(122, 165, 203)); // Chart1.colorSet.Add(Color.FromArgb(80, 188, 200)); // Bunifu.DataViz.WinForms.Canvas canvas = new Bunifu.DataViz.WinForms.Canvas(); // Bunifu.DataViz.WinForms.DataPoint values = new Bunifu.DataViz.WinForms.DataPoint(Bunifu.DataViz.WinForms.BunifuDataViz._type.Bunifu_doughnut); // SortedDictionary<int, float> totalall = statictisBLL.TotalAll(isTopMost); // if (totalall != null) // { // foreach (var item in totalall) // values.addLabely("", item.Value); // canvas.addData(values); // Chart1.Render(canvas); // LoadLegend(totalall); // } //} public void RenderChart1(bool TopMost) { Chart1.colorSet.Add(Color.FromArgb(255, 128, 255)); Chart1.colorSet.Add(Color.FromArgb(128, 128, 255)); Chart1.colorSet.Add(Color.FromArgb(128, 255, 255)); Chart1.colorSet.Add(Color.FromArgb(255, 192, 128)); Chart1.colorSet.Add(Color.FromArgb(255, 255, 128)); Bunifu.DataViz.WinForms.Canvas canvas = new Bunifu.DataViz.WinForms.Canvas(); Bunifu.DataViz.WinForms.DataPoint values = new Bunifu.DataViz.WinForms.DataPoint(Bunifu.DataViz.WinForms.BunifuDataViz._type.Bunifu_doughnut); SortedDictionary <int, float> totalall = statictisBLL.TotalAll(TopMost); foreach (var item in totalall) { values.addLabely("", item.Value); } canvas.addData(values); Chart1.Render(canvas); LoadLegend(totalall); }