123456789101112131415161718192021222324252627282930313233 |
- using fwt
- using gfx
- using swtChartWrapper
- class Example3
- {
- public static Void main ()
- {
- // define the series of data points to display
- series := ScatterSeries
- {
- label = "scatter series"
- xPoints = [0.1f, 0.0f, 0.2f, 0.4f, 0.7f, 0.9f, 1.0f, 0.9f, 0.7f, 0.4f]
- yPoints = [0.2f, 0.4f, 0.7f, 0.9f, 1.0f, 0.9f, 0.7f, 0.4f, 0.2f, 0.0f]
- symbolType = PlotSymbolType.inverted_triangle
- symbolColor = Color.red
- }
- // define a window to display the chart in
- Window
- {
- title = "Example Chart"
- size = Size(450, 350)
- Chart
- {
- title.text = "Scatter Chart Example"
- xAxis.title.text = "Score A"
- yAxis.title.text = "Score B"
- data = [series]
- },
- }.open
- }
- }
|