P
Peter Kenyon
Hi all,
I am using the following JavaScript code to display a bar graph bound to an
ADO recordset.
This graph is meant to have 4 series based on the fields Actual, Budget,
ActualYTD and BudgetYTD. However, the code below only creates the last
series - the first three seem to get "overwritten".
Can anybody tell me what I need to do to create more than one series?
Thanks,
Peter
var c = ChartSpace.Constants;
ChartSpace.Clear();
ChartSpace.DataSource = rs;
ChartSpace.DisplayFieldButtons = false;
ChartSpace.HasChartSpaceLegend = true;
ChartSpace.HasChartSpaceTitle = true;
ChartSpace.ChartSpaceTitle.Caption = "Sales plan for " +
RepName.innerText;
ChartSpace.PlotAllAggregates = c.chPlotAggregatesSeries;
ChartSpace.SetData(c.chDimCategories, 0, "MthDate");
ChartSpace.SetData(c.chDimValues, 0, "Actual");
ChartSpace.SetData(c.chDimValues, 0, "Budget");
ChartSpace.SetData(c.chDimValues, 0, "ActualYTD");
ChartSpace.SetData(c.chDimValues, 0, "BudgetYTD");
I am using the following JavaScript code to display a bar graph bound to an
ADO recordset.
This graph is meant to have 4 series based on the fields Actual, Budget,
ActualYTD and BudgetYTD. However, the code below only creates the last
series - the first three seem to get "overwritten".
Can anybody tell me what I need to do to create more than one series?
Thanks,
Peter
var c = ChartSpace.Constants;
ChartSpace.Clear();
ChartSpace.DataSource = rs;
ChartSpace.DisplayFieldButtons = false;
ChartSpace.HasChartSpaceLegend = true;
ChartSpace.HasChartSpaceTitle = true;
ChartSpace.ChartSpaceTitle.Caption = "Sales plan for " +
RepName.innerText;
ChartSpace.PlotAllAggregates = c.chPlotAggregatesSeries;
ChartSpace.SetData(c.chDimCategories, 0, "MthDate");
ChartSpace.SetData(c.chDimValues, 0, "Actual");
ChartSpace.SetData(c.chDimValues, 0, "Budget");
ChartSpace.SetData(c.chDimValues, 0, "ActualYTD");
ChartSpace.SetData(c.chDimValues, 0, "BudgetYTD");