Data can be supplied from the server through the onBeginProcessData event instead of being stored in the dashboard.

Handle the data event.
viewer = StiViewer()

# String name -> JavaScript client-side handler; a function -> Python server-side handler
viewer.onBeginProcessData += 'beginProcessData'

report = StiReport()
report.loadFile(url_for('static', filename='reports/WebsiteAnalytics.mrt'))
viewer.report = report

How it works. The event lets code decide the dashboard's data at request time, so the template need not carry its own connections.

Hallo! Brauchen Sie Hilfe?