public static GetFinancialDataList ( ) : List |
||
Résultat | List |
public override void ViewDidLoad() { base.ViewDidLoad(); chart.BindingX = "Date"; chart.Series.Add(new Xuni.iOS.FlexChart.Series(this.chart, "High,Low,Open,Close", "AAPL")); chart.ChartType = Xuni.iOS.FlexChart.ChartType.Candlestick; chart.SelectionMode = Xuni.iOS.ChartCore.SelectionMode.Point; chart.Legend.Position = Xuni.iOS.ChartCore.Position.None; chart.AxisY.MajorGridFill = new UIColor(0.6f, 0.2f); chart.ItemsSource = FinancialData.GetFinancialDataList(); }
public override void ViewDidLoad() { base.ViewDidLoad(); chart.ItemsSource = FinancialData.GetFinancialDataList(); chart.Palette = XuniPalettes.Superhero; chart.BindingX = "Date"; Axis axisT = new Axis(Position.Right, chart) { Min = 0, Max = 150, MajorUnit = 10, Title = "Volume", AxisLineVisible = false, MajorGridVisible = false, MajorGridWidth = 1, MajorTickWidth = 0, TitleTextColor = new UIColor(0.984f, 0.698f, 0.345f, 1.0f), LabelsVisible = true }; chart.AxesArray.Add(axisT); chart.Series.Add(new Series(chart, "Volume", "Volume") { AxisY = axisT }); chart.Series.Add(new Series(chart, "High", "High") { ChartType = ChartType.Line }); chart.Series.Add(new Series(chart, "Low", "Low") { ChartType = ChartType.Line }); chart.Header = "Drag to scroll/Pinch to zoom"; chart.ZoomMode = ZoomMode.X; chart.AxisX.DisplayedRange = 10; }