public LineChartCell() { chart = new SFChart(); SFCategoryAxis primaryAxis = new SFCategoryAxis(); primaryAxis.PlotOffset = 5; chart.PrimaryAxis = primaryAxis; SFNumericalAxis secondaryAxis = new SFNumericalAxis(); chart.SecondaryAxis = secondaryAxis; dataModel = new ChartLineDataSource(); chart.DataSource = dataModel as SFChartDataSource; chart.PrimaryAxis.ShowMajorGridLines = false; chart.PrimaryAxis.Visible = false; chart.SecondaryAxis.Visible = false; chart.SecondaryAxis.ShowMajorGridLines = false; chart.Legend.Visible = false; this.AddSubview(chart); this.CanRenderUnLoad = false; }
public LineChartCell () { chart = new SFChart (); SFCategoryAxis primaryAxis = new SFCategoryAxis (); primaryAxis.PlotOffset = 5; chart.PrimaryAxis = primaryAxis; SFNumericalAxis secondaryAxis = new SFNumericalAxis (); chart.SecondaryAxis = secondaryAxis; dataModel = new ChartLineDataSource (); chart.DataSource = dataModel as SFChartDataSource; chart.PrimaryAxis.ShowMajorGridLines = false; chart.PrimaryAxis.Visible = false; chart.SecondaryAxis.Visible = false; chart.SecondaryAxis.ShowMajorGridLines = false; chart.Legend.Visible = false; this.AddSubview (chart); this.CanRenderUnLoad = false; }