charts.html revision 2a322140e93579c14e2037ff2eb3e62eaa86c9df
5852N/A filter: (window.location.search.match(/[?&]filter=([^&]+)/) || [])[1] || 'min'
5852N/A mychart.render("#mychart");
5852N/A this.chart = mychart;
5852N/A var series = this.chart.getSeries(0),
5852N/A var series = this.chart.getSeries("revenue"),
5852N/A var category = this.chart.getAxisByKey("category"),
5852N/A values = this.chart.getAxisByKey("values"),
5852N/A var category = this.chart.get("categoryAxis"),
5852N/A axes = this.chart.get("axes"),
5852N/A if(axes.hasOwnProperty(i))
4203N/A actualKeys = this.chart.get("seriesKeys"),
5852N/A len = testKeys.length;
5852N/A assert.areEqual(actualKeys.length, testKeys.length, "Actual seriesKeys array is not the correct length.");
5852N/A assert.isNotNull(selectedIndex + 1, "The seriesKeys array should contain the following key: " + testKeys[i] + ".");
5852N/A newArray.push(actualKeys[selectedIndex]);
5852N/A throw new Error("The actual seriesKeys array should but does not contain " + testKeys[i] + ".");
4203N/A assert.areEqual(newArray.length, actualKeys.length, "The seriesKeys array has more keys than it should.");
4203N/A chart = this.chart,
5852N/A if(attrs.hasOwnProperty(i))
4203N/A assert.areEqual(chart.get(i), attrs[i], "The attribute " + i + " should equal " + attrs[i] + ".");
5852N/A var mychart = new Y.Chart({width:400, height:300, dataProvider:myDataValues, seriesKeys:["values", "revenue"]});
5852N/A mychart.render("#mychart");
5852N/A this.chart = mychart;
5852N/A var graph = this.chart.get("graph"),
5852N/A var graph = this.chart.get("graph"),
5852N/A var graph = this.chart.get("graph"),
5852N/A var graph = this.chart.get("graph"),
5852N/A var graph = this.chart.get("graph"),
5852N/A Y.Assert.areEqual(series, Y.StackedAreaSeries, "The series type should be Y.StackedAreaSeries");
5852N/A var graph = this.chart.get("graph"),
5852N/A Y.Assert.areEqual(series, Y.StackedColumnSeries, "The series type should be Y.StackedColumnSeries");
4203N/A var graph = this.chart.get("graph"),
5852N/A Y.Assert.areEqual(series, Y.StackedBarSeries, "The series type should be Y.StackedBarSeries");
5852N/A var graph = this.chart.get("graph"),
5852N/A Y.Assert.areEqual(series, Y.StackedLineSeries, "The series type should be Y.StackedLineSeries");
5852N/A var graph = this.chart.get("graph"),
5852N/A var graph = this.chart.get("graph"),
4203N/A Y.Assert.areEqual(series, Y.StackedMarkerSeries, "The series type should be Y.StackedMarkerSeries");
var graph = this.chart.get("graph"),
var graph = this.chart.get("graph"),
var graph = this.chart.get("graph"),
Y.Assert.areEqual(series, Y.StackedSplineSeries, "The series type should be Y.StackedSplineSeries");
var graph = this.chart.get("graph"),
Y.Assert.areEqual(series, Y.StackedAreaSplineSeries, "The series type should be Y.StackedAreaSplineSeries");
var graph = this.chart.get("graph"),
var graph = this.chart.get("graph"),
var graph = this.chart.get("graph"),
var graph = this.chart.get("graph"),
var graph = this.chart.get("graph"),
Y.Assert.areEqual(series, Y.StackedComboSplineSeries, "The series type should be Y.StackedComboSplineSeries");
var graph = this.chart.get("graph"),
series = graph._getSeries(Y.CustomLineSeries);
var mychart = new Y.Chart({width:400, height:300, dataProvider:myDataValues, seriesKeys:["values", "revenue"]});
mychart.render("#mychart");
this.chart = mychart;
var assert = Y.Assert,
xAxis = this.chart.getCategoryAxis(),
yAxis = this.chart.getAxisByKey("values"),
l = xAxis.get("keyCollection").length || 0;
assert.areEqual(0, 0, "The value should be zero");
keys = yAxis.get("keyCollection");
xAxis.removeKey("category");
yAxis.removeKey("revenue");
var assert = Y.Assert,
yAxis = this.chart.getAxisByKey("values"),
keys = yAxis.get("keyCollection");
testarray = yAxis.getDataByKey("expenses");
//Tests a NumericAxis minimum and maximum by applying the labelFunction of the axis to the set minimum and maximum values and
Y.assert(labels[0].innerHTML == yAxis.get("labelFunction").apply(yAxis, [setMin, yAxis.get("labelFormat")]));
Y.assert(labels[count].innerHTML == yAxis.get("labelFunction").apply(yAxis, [setMax, yAxis.get("labelFormat")]));
Y.assert(labels[0].innerHTML == yAxis.get("labelFunction").apply(yAxis, [setMin, yAxis.get("labelFormat")]));
Y.assert(labels[count].innerHTML == yAxis.get("labelFunction").apply(yAxis, [setMax, yAxis.get("labelFormat")]));
Y.assert(labels[0].innerHTML == yAxis.get("labelFunction").apply(yAxis, [setMin, yAxis.get("labelFormat")]));