Initializes a new instance of the DateTimeSeries class.
Namespace: MindFusion.Charting
File: DateTimeSeries.js
JavaScript Copy Code |
---|
function DateTimeSeries (dates, values, minDate, maxDate) |
Type: List
A list of Date values.
Type: List
A list of number values.
Type: Date
Identifies the start of the time range.
Type: Date
Identifies the end of the time range.
The following code creates a new DateTimeSeries that uses the last 10 years as Date values and a List with income data. The first and last Date in the list are used as min and max values.
JavaScript Copy Code |
---|
// create sample series var income = new Collections.List([12, 13.2, 15.6, 17.8, 39, 20, 29, 79, 101, 120, 122]); var series = new DateTimeSeries( |