Description
The original code came from Scott Guthries chart engine example. The differences from original code are:
- Some of charts attributes are exposed as properties
- ChartGenerator.ChartLine.Color
- ChartGenerator.ChartLine.Style
- ChartGenerator.ChartLine.Width
- The above are used for setting the properties of each line from chart
- ChartGenerator.Engine.ImageBackgroundColor
- ChartGenerator.Engine.ImageHeight
- ChartGenerator.Engine.ImageWidth
- ChartGenerator.Engine.IsScaled - determines when the chart will be scaled or not.
- The minimum and maximum points are calculated inside using Array methods. We copied the Y values of each line into an array, sorted the array and using the first and the last member of array determined the maximum and the minimum.