Advertisement
Guest User

Untitled

a guest
May 20th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. void loadChart1()
  2. {
  3. var r = new Random();
  4. var Canvas = new Bunifu.DataViz.WinForms.Canvas();
  5. var datapoint = new Bunifu.DataViz.WinForms.DataPoint(Bunifu.DataViz.WinForms.BunifuDataViz._type.Bunifu_bar);
  6.  
  7. bunifuCharts1.colorSet.Add(Color.FromArgb(149, 48, 93));
  8. bunifuCharts1.colorSet.Add(Color.FromArgb(225, 155, 45));
  9. bunifuCharts1.colorSet.Add(Color.FromArgb(75, 146, 108));
  10.  
  11.  
  12.  
  13.  
  14. Bunifu.DataViz.WinForms.DataPoint point1 = new Bunifu.DataViz.WinForms.DataPoint(Bunifu.DataViz.WinForms.BunifuDataViz._type.Bunifu_line);
  15. point1.addLabely("MONDAY", "5800");
  16. point1.addLabely("TUESDAY", "5000");
  17. point1.addLabely("WEDNESDAY", "4000");
  18. point1.addLabely("THURSDAY", "8000");
  19. point1.addLabely("FRIDAY", "4000");
  20. point1.addLabely("SATURDAY", "5800");
  21. point1.addLabely("SUNDAY", "5000");
  22. Canvas.addData(point1);
  23. bunifuCharts1.Render(Canvas);
  24.  
  25. Bunifu.DataViz.WinForms.DataPoint point2 = new Bunifu.DataViz.WinForms.DataPoint(Bunifu.DataViz.WinForms.BunifuDataViz._type.Bunifu_area);
  26. point2.addLabely("MONDAY", "2800");
  27. point2.addLabely("TUESDAY", "2500");
  28. point2.addLabely("WEDNESDAY", "3200");
  29. point2.addLabely("THURSDAY", "6000");
  30. point2.addLabely("FRIDAY", "3500");
  31. point2.addLabely("SATURDAY", "4000");
  32. point2.addLabely("SUNDAY", "3000");
  33. Canvas.addData(point2);
  34. bunifuCharts1.Render(Canvas);
  35.  
  36.  
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement