. Net language APP development platform-Smobiler Learning Log: How to quickly implement the CandleStickChart control on mobile phones,. net
Smobiler is a development platform that uses the. Net language to develop apps in the VS environment. It may be more convenient than Xamarin.
1. Target Style
The following operations are required to achieve the effect:
1. Drag a CandleStickChart control from "scycler Components" on the toolbar to the form interface.
2. Create data information a. Table Design
Table design information is shown in Figure 1;
B. Table Data
Table data information is shown in figure 2.
3. Modify the attribute a. DefaultColors of Barcandlestickchart.
Open the Set Editor and click Add. 1. Figure 2
B. DataSource Properties
Set the data source, click "add project data source", and follow the steps to set the data source, 3
|
|
|
Figure 1 |
Figure 2 |
Figure 3 |
C. Load event (add data)
VB: Private Sub TextCandleStickChart_Load(sender As Object, e As EventArgs) Handles MyBase.Load candlestickchartTableAdapter.Fill(sjDataSet2.candlestickchart) Me.candleStickChart1.DataBind() End Sub
C#: private void TextCandleStickChart_Load(object sender, EventArgs e) { candlestickchartTableAdapter.Fill(sjDataSet2.candlestickchart); this.candleStickChart1.DataBind(); }
D. ValueCloseMember attributes
Bound to the market value data source, 4
E. ValueHighMember attributes
Bind the highest value data source, 5
F. ValueLowMember attributes
Bind the lowest value data source, 6
G. ValueOpenMember attributes
Bind a market value data source, 7
|
|
|
|
Figure 4 |
Figure 5 |
Figure 6 |
Figure 7 |
H. XAxisLabelMember attributes
Value bound to the X axis, 8
I. SeriesMember attributes
Set the data set source of Series, 9
Ii. Mobile phone effect display