Advertisement
Guest User

Untitled

a guest
May 30th, 2016
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. namespace WindowsFormsApplication4.Models
  2. {
  3. public class Entry
  4. {
  5. public string Segment { get; set; }
  6. public int Time { get; set; }
  7. public double Speed { get; set; }
  8. }
  9. }
  10.  
  11. chart1 = new Chart();
  12.  
  13. chart1.DataSource = list;
  14.  
  15. chart1.Series.Add("Speed").YValueMembers = "Speed";
  16. chart1.Series["Speed"].ChartType = SeriesChartType.Bar;
  17. chart1.Series["Speed"].XValueType = ChartValueType.Double;
  18. chart1.Series["Speed"].YValueType = ChartValueType.Double;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement