Page 1 of 1
Changing the chart type at runtime
Posted: Fri Apr 13, 2007 3:12 am
by satisht
Is it possible to change the Chart type at runtime ?, if I want to change chart type from bar to pie?
Changing the chart type at runtime
Posted: Fri Apr 13, 2007 4:17 am
by Vladimir
Changing the chart type at runtime
Posted: Fri Apr 13, 2007 5:17 am
by satisht
I am having object StiReport and I have designed report at design time but how shoud i chage the type of report at runutiem?
Changing the chart type at runtime
Posted: Fri Apr 13, 2007 5:18 am
by satisht
I am having object of StiReport and I have designed report (chart) at design time but how should i chage the type of report at runutieme?
Changing the chart type at runtime
Posted: Fri Apr 13, 2007 4:48 pm
by Vital
You can use following code:
Code: Select all
StiChart chart = report.GetComponents()["Chart1"] as StiChart;
chart.Area= new StiPieArea();
report.Render();
Thank you.
Changing the chart type at runtime
Posted: Tue Apr 17, 2007 9:24 am
by satisht
I have tried to chage the type of chart at runtime in vb.net but It is showing empty chart
Report.Load(Application.StartupPath + "\status.mrt")
Dim chart As StiChart = CType(Report.GetComponents()("Chart1"), StiChart)
chart.Area = New StiPieArea()
Report.Render()
Report.Compile()
Report.Show()
Can you tell me the code to do it?
Changing the chart type at runtime
Posted: Tue Apr 17, 2007 10:14 am
by Vital
For also you need assign new series (Pie based).
Thank you.