12345678910111213141516171819202122232425262728293031 |
- using fwt
- using gfx
- using swtChartWrapper
- class Example8
- {
- public static Void main ()
- {
- // define the series of data points to display
- series := BarSeries
- {
- label = "bar series"
- points = [0.0f, 0.2f, 0.4f, 0.7f, 0.9f, 1.0f, 0.9f, 0.7f, 0.4f]
- }
- // define a window to display the chart in
- Window
- {
- title = "Example Chart"
- size = Size(450, 350)
- Chart
- {
- title.text = "Orientation Example"
- xAxis.title.text = "Data Points"
- yAxis.title.text = "Amplitude"
- data = [series]
- orientation = Orientation.vertical
- },
- }.open
- }
- }
|