Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void loadChart1()
- {
- var r = new Random();
- var Canvas = new Bunifu.DataViz.WinForms.Canvas();
- var datapoint = new Bunifu.DataViz.WinForms.DataPoint(Bunifu.DataViz.WinForms.BunifuDataViz._type.Bunifu_bar);
- bunifuCharts1.colorSet.Add(Color.FromArgb(149, 48, 93));
- bunifuCharts1.colorSet.Add(Color.FromArgb(225, 155, 45));
- bunifuCharts1.colorSet.Add(Color.FromArgb(75, 146, 108));
- Bunifu.DataViz.WinForms.DataPoint point1 = new Bunifu.DataViz.WinForms.DataPoint(Bunifu.DataViz.WinForms.BunifuDataViz._type.Bunifu_line);
- point1.addLabely("MONDAY", "5800");
- point1.addLabely("TUESDAY", "5000");
- point1.addLabely("WEDNESDAY", "4000");
- point1.addLabely("THURSDAY", "8000");
- point1.addLabely("FRIDAY", "4000");
- point1.addLabely("SATURDAY", "5800");
- point1.addLabely("SUNDAY", "5000");
- Canvas.addData(point1);
- bunifuCharts1.Render(Canvas);
- Bunifu.DataViz.WinForms.DataPoint point2 = new Bunifu.DataViz.WinForms.DataPoint(Bunifu.DataViz.WinForms.BunifuDataViz._type.Bunifu_area);
- point2.addLabely("MONDAY", "2800");
- point2.addLabely("TUESDAY", "2500");
- point2.addLabely("WEDNESDAY", "3200");
- point2.addLabely("THURSDAY", "6000");
- point2.addLabely("FRIDAY", "3500");
- point2.addLabely("SATURDAY", "4000");
- point2.addLabely("SUNDAY", "3000");
- Canvas.addData(point2);
- bunifuCharts1.Render(Canvas);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement