Data can be attached to a dashboard at run time — here a JSON file is parsed and bound to the template before it is shown.

Parse JSON and register it.
var report = StiReport.CreateNewDashboard();
report.Load("Dashboards\\Dashboard.mrt");

var jsonBytes = File.ReadAllBytes("Dashboards\\Demo.json");
var dataSet   = StiJsonConnector.Get().GetDataSet(new StiJsonOptions(jsonBytes));

report.RegData(dataSet);
report.Dictionary.Synchronize();

How it works. The dashboard elements resolve their expressions against the registered data, so the same template works with any compatible JSON source.
Auf dem Screenshot unten Sie können das Ergebnis des Beispiel-Codes ansehen:

Registering a Data for Dashboard Template

Hallo! Brauchen Sie Hilfe?