J
jonathan.smith
I have a existing application written following the microsoft example
using webservices. My PivotTable is loaded using a webservice and
javascript with the chart datasource being the pivotTable. I now have
4 measures showing as lines on my chart. I would like to remove one of
them but can't seem to find the correct javascript code. The
javascript code is below (the lines commented at the bottom are my last
attempts, thanks:
function onLoadReportResult(result) {
// Purpose: This function handles the
wsOLAP.LoadCustomPivotTableReport() web service result
var text = result.value; // result string
// Evaluate return result
//alert("this is an text " + text);
if (!result.error) {
if (text.indexOf("<err>") > -1 ) {
alert(text);
}
// Assign the XML to the PivotList XMLData value
pt.XMLData = text;
// bind the Chart control to the PivotTable control
ChartSpace1.DataSource = pt;
ChartSpace1.style.visibility = "visible";
ChartSpace1.Charts(0).Type = 6;
ChartSpace1.Charts(0).HasLegend = "true";
ChartSpace1.DisplayToolbar = "false";
var c;
c=ChartSpace1.Constants;
ChartSpace1.PlotAllAggregates = c.chPlotAggregatesSeries
//ChartSpace1.Charts(0).SeriesCollection(0).DataLabelsCollection(0)(0).Visible
= "false";
//ChartSpace1.Charts(0).SeriesCollection(0).DataLabelsCollection(0)(X).visible="false";
}
else {
alert("Unhandled error - " + result.errorDetail.code + " " +
result.errorDetail.string);
}
}
using webservices. My PivotTable is loaded using a webservice and
javascript with the chart datasource being the pivotTable. I now have
4 measures showing as lines on my chart. I would like to remove one of
them but can't seem to find the correct javascript code. The
javascript code is below (the lines commented at the bottom are my last
attempts, thanks:
function onLoadReportResult(result) {
// Purpose: This function handles the
wsOLAP.LoadCustomPivotTableReport() web service result
var text = result.value; // result string
// Evaluate return result
//alert("this is an text " + text);
if (!result.error) {
if (text.indexOf("<err>") > -1 ) {
alert(text);
}
// Assign the XML to the PivotList XMLData value
pt.XMLData = text;
// bind the Chart control to the PivotTable control
ChartSpace1.DataSource = pt;
ChartSpace1.style.visibility = "visible";
ChartSpace1.Charts(0).Type = 6;
ChartSpace1.Charts(0).HasLegend = "true";
ChartSpace1.DisplayToolbar = "false";
var c;
c=ChartSpace1.Constants;
ChartSpace1.PlotAllAggregates = c.chPlotAggregatesSeries
//ChartSpace1.Charts(0).SeriesCollection(0).DataLabelsCollection(0)(0).Visible
= "false";
//ChartSpace1.Charts(0).SeriesCollection(0).DataLabelsCollection(0)(X).visible="false";
}
else {
alert("Unhandled error - " + result.errorDetail.code + " " +
result.errorDetail.string);
}
}