. Net language APP development platform-Smobiler Learning Log: How to Implement the scatter chart function on the mobile phone, appsmobiler
Smobiler is a development platform that uses the. Net language to develop apps in the VS environment. It may be more convenient than Xamarin.
Style 1, Target Style
The following operations are required to achieve the effect:
1. Drag a ScatterChart control from "Smobiler 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 attributes of Barscatterchart a. DefaultColors.
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 TestScatterChart_Load(sender As Object, e As EventArgs) Handles MyBase.Load scatterchartTableAdapter.Fill(sjDataSet1.scatterchart) Me.scatterChart1.DataBind() End Sub
C#: private void TestScatterChart_Load(object sender, EventArgs e) { scatterchartTableAdapter.Fill(sjDataSet1.scatterchart); this.scatterChart1.DataBind(); }
D. XAxisLabelMember attributes
Value bound to the X axis, 4
E. YAxisLabelMember attributes
Value bound to the Y axis, 5
F. SeriesMember attributes
Set the data set source of Series, 6
G. SeriesShapMember attributes
Set the data and shape source. The default value is null.
The field data values are classified into five types: ScatterChart. scatterShape. SQUARE and ScatterChart. scatterShape. CIRCLE (Circular), ScatterChart. scatterShape. TRIANGLE (TRIANGLE), ScatterChart. scatterShape. CROSS and ScatterChart. scatterShape. X (horizontal line); the default image is circular.
|
|
|
Figure 4 |
Figure 5 |
Figure 6 |
Ii. Mobile phone effect display