12345678910111213141516171819202122232425262728293031323334 |
- using fwt
- using gfx
- using swtChartWrapper
- class Example7
- {
- public static Void main ()
- {
- // define the series of data points to display
- series := LineSeries
- {
- label = "line series"
- points = [0.6f, 0.4f, 0.7f, 0.06f, 1.9f, 1.7f,
- 2.6f, 5.4f, 9.1f, 11.2f, 23.4f, 10.6f,
- 54.2f, 40.6f, 68.1f, 110.5f
- ]
- }
- // define a window to display the chart in
- Window
- {
- title = "Example Chart"
- size = Size(450, 350)
- Chart
- {
- title.text = "Log Scale Example"
- xAxis.title.text = "Data Points"
- yAxis.title.text = "Amplitude"
- yAxis.enableLogScale = true
- data = [series]
- },
- }.open
- }
- }
|