new OSH.UI.Nvd3CurveChartView()
Example
// Chart View
var windSpeedChartView = new OSH.UI.Nvd3CurveChartView(chartDialog.popContentDiv.id, [{
styler: new OSH.UI.Styler.Curve({
valuesFunc: {
dataSourceIds: [weatherDataSource.getId()],
handler: function(rec, timeStamp) {
return {
x: timeStamp,
y: parseFloat(rec[2])
};
}
}
})
}], {
name: "WindSpeed chart",
yLabel: 'Wind Speed (m/s)',
xLabel: 'Time',
css: "chart-view",
cssSelected: "video-selected",
maxPoints: 30
});
Extends
Methods
-
inherited addViewItem(viewItem)
-
Add viewItem to the view
Name Type Description viewItem -
inherited attachTo(divId)
-
Name Type Description divId -
inherited beforeAddingItems(options)
-
Name Type Description options -
inherited getDataSourcesId(){Array}
-
Returns:
Type Description Array -
inherited getDivId(){string|*}
-
Returns:
Type Description string | * -
inherited getId(){string|*}
-
Returns:
Type Description string | * -
inherited handleEvents()
-
-
inherited hide()
-
-
inherited onResize()
-
-
-
selectDataView($super, dataSourceIds)
-
Name Type Description $superdataSourceIds -
inherited setData(dataSourceId, data)
-
Name Type Description dataSourceIddata -
inherited show(properties)
-
Show the view by removing display:none style if any.
Name Type Description properties -
inherited shows(properties)
-
Name Type Description properties -
updateCurve(styler, timestamp, options)
-
Name Type Description stylertimestampoptions