void MultiCurLines_fill() { OneDataModel oneCurLine0 = new OneDataModel() { Points = new List <nfloat>() { 0, 1, 5, 30, 1 }, LineWidth = 2, StrokeColor = UIColor.FromRGB(35, 211, 197), GradientColor = new CGColor[] { UIColor.FromRGB(35, 211, 197).ColorWithAlpha(0.5f).CGColor, UIColor.White.ColorWithAlpha(0.5f).CGColor } }; OneDataModel oneCurLine1 = new OneDataModel() { Points = new List <nfloat>() { 10, 3, 5, 40, 23 }, LineWidth = 3, StrokeColor = UIColor.Orange, GradientColor = new CGColor[] { UIColor.Orange.ColorWithAlpha(0.5f).CGColor, UIColor.White.ColorWithAlpha(0.5f).CGColor } }; OneDataModel oneCurLine2 = new OneDataModel() { Points = new List <nfloat>() { 16, 23, 8, 20, 13 }, LineWidth = 4, StrokeColor = UIColor.Cyan, GradientColor = new CGColor[] { UIColor.Cyan.ColorWithAlpha(0.5f).CGColor, UIColor.White.ColorWithAlpha(0.5f).CGColor } }; OneDataModel oneCurLine3 = new OneDataModel() { Points = new List <nfloat>() { 0, 13, 0, 13, 0 }, LineWidth = 2, StrokeColor = UIColor.Red, GradientColor = new CGColor[] { UIColor.Red.ColorWithAlpha(0.5f).CGColor, UIColor.White.ColorWithAlpha(0.5f).CGColor } }; MultiLinesChart_fill k = new MultiLinesChart_fill(new CGRect(10, 120, 340, 300), new List <OneDataModel>() { oneCurLine0, oneCurLine1, oneCurLine2, oneCurLine3 }); Context.AddSubview(k); }
void OneCurLine() { OneDataModel oneCurLine = new OneDataModel() { Points = new List <nfloat>() { 0, 1, 5, 10, 1 }, LineWidth = 2, StrokeColor = UIColor.FromRGB(35, 211, 197) }; BaseLineChart k = new BaseLineChart(new CGRect(10, 120, 340, 300), oneCurLine); Context.AddSubview(k); }
void OneCurLine_fill() { OneDataModel oneCurLine = new OneDataModel() { Points = new List <nfloat>() { 0, 1, 5, 10, 1 }, LineWidth = 2, StrokeColor = UIColor.FromRGB(35, 211, 197), GradientColor = new CGColor[] { UIColor.FromRGB(44, 253, 250).ColorWithAlpha(0.5f).CGColor, UIColor.White.ColorWithAlpha(0.5f).CGColor }, }; BaseLineChart_fill k = new BaseLineChart_fill(new CGRect(10, 120, 340, 300), oneCurLine); Context.AddSubview(k); }
void MultiCurLines() { OneDataModel oneCurLine0 = new OneDataModel() { Points = new List <nfloat>() { 0, 1, 5, 30, 1 }, LineWidth = 2, StrokeColor = UIColor.FromRGB(35, 211, 197) }; OneDataModel oneCurLine1 = new OneDataModel() { Points = new List <nfloat>() { 10, 3, 5, 40, 23 }, LineWidth = 3, StrokeColor = UIColor.Orange }; OneDataModel oneCurLine2 = new OneDataModel() { Points = new List <nfloat>() { 16, 23, 8, 20, 13 }, LineWidth = 4, StrokeColor = UIColor.Cyan }; OneDataModel oneCurLine3 = new OneDataModel() { Points = new List <nfloat>() { 0, 13, 0, 13, 0 }, LineWidth = 2, StrokeColor = UIColor.Red }; MultiLinesChart k = new MultiLinesChart(new CGRect(10, 120, 340, 300), new List <OneDataModel>() { oneCurLine0, oneCurLine1, oneCurLine2, oneCurLine3 }); Context.AddSubview(k); }