timespanButton.setVisible(true);
// feed chronoscope ...
final Datasets<Tuple2D> datasets = new Datasets<Tuple2D>();
DatasetReader datasetReader = ChronoscopeFactory.getInstance().getDatasetReader();
JSOModel jsoModel = JSOModel.fromJson(chartData);
if(chartData.startsWith("["))
{
for(int i=0; i<jsoModel.length(); i++)
{
datasets.add(datasetReader.createDatasetFromJson(
new GwtJsonDataset(jsoModel.get(i)))
);
}
}
else
{
datasets.add(datasetReader.createDatasetFromJson(
new GwtJsonDataset(jsoModel))
);
}