Private Chart As SithasoMPACharts
Sub Activity_Create(FirstTime As Boolean)
Chart.Initialize("Chart")
Activity.AddView(Chart, 0, 0, 100%x, 100%y)
Chart.BeginUpdate
Chart.ChartType = Chart.CHART_LINE
Chart.Title = "Revenue"
Chart.ShowTitle = True
Dim DS0 As Int = Chart.AddDataSet("Revenue", 0)
Chart.AddLabels(Array As String("Jan", "Feb", "Mar"))
Chart.AddValues(DS0, Array As Double(12, 19, 15))
Chart.EndUpdate
End Sub