Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Changing chart type from JavaScript

3 views
Skip to first unread message

brian_madden

unread,
Oct 19, 2004, 9:53:03 AM10/19/04
to
Hi,
I have a chart control that I am binding to a pivot table in javascript. The
pivot table is pulling data from an OLAP data source. I am trying to change
the chart type from the default bar chart to one of the other types but it is
not working. I have a code snippet below showing what I am doing.

var consts;
consts = form1.Chart1.Constants;
form1.Chart1.Type = consts.chChartTypeColumn3D;
form1.PivotTable1.XMLData = results.value;
form1.Chart1.Clear();
form1.Chart1.DataSource = form1.PivotTable1;

Can someone help me with this?

Thanks!
Brian

brian_madden

unread,
Oct 19, 2004, 11:19:04 AM10/19/04
to
Found the problem.
Should be form1.Chart1.Charts(0).Type = consts.chChartTypeColumn3D;
instead of
form1.Chart1.Type = consts.chChartTypeColumn3D;

harlyn...@gmail.com

unread,
Mar 30, 2020, 11:16:42 AM3/30/20
to
вторник, 19 октября 2004 г., 16:53:03 UTC+3 пользователь brian_madden написал:
Thanks!
0 new messages