Initializes a new instance of the Series2D class.
Namespace: MindFusion.Charting
File: Series2D.js
JavaScript Copy Code |
---|
function Series2D (xValues, yValues, labels) |
Type: List | Array
A list of X coordinates.
Type: List | Array
A list of Y coordinates.
Type: List | Array
A list of labels.
The following code creates a new Series2D using arrays with values:
JavaScript Copy Code |
---|
var series = new Charting.Series2D([10, 20, 30, 40], [50, 40, 50, 5], ["Tomatoes", "Cucumbers", "Peppers", "Lettuce"]); series.title = "Traditional"; |
JavaScript Pack Programmer's Guide | © 2024 MindFusion |