Using the timeseries that we created in the previous step (measuredTimeSeries and waterlevelResults) we want to create a chart showing both timeseries. To do this we first need to import the ChartFunctions library and create chart series for the timeseries. In this case a point series for the measurements and a line series for the calculated waterlevel.
Create chart series
from Libraries.ChartFunctions import *
dataSeries = CreatePointSeries(measuredTimeSeries)
lineResults = CreateLineSeries(waterlevelResults)
Then we continue by creating the chart with the two chart series and opening a view for it.
Create chart
chart = CreateChart([dataSeries, lineResults])
chart.Name = "Water level at center Zwolle channels"
view = OpenView(chart)