Connecting Tech Pros Worldwide Forums | Help | Site Map

Setting Chart Properties Programmatically

Anil
Guest
 
Posts: n/a
#1: Nov 19 '05
Hello,
I am using VS2005 Beta2 and I have added a Simple Line-Graph chart to a
ReportViewer control.

I can click on the chart and alter for example the Minimum and Maximum scale
values of the Y-axis.

The question I have is that, can I change these values from within my code
and how?

Thank you,
Anil.

Alvin Bruney - ASP.NET MVP
Guest
 
Posts: n/a
#2: Nov 19 '05

re: Setting Chart Properties Programmatically


yup, if you create the chart programatically, store a reference to the chart
for later use. you can then access the series for the chart that gives you
access to the scaling object which in turn leads you to min/max property

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------



"Anil" <Anil@discussions.microsoft.com> wrote in message
news:61060783-D8C2-43ED-BF3B-BAD9DB6226AD@microsoft.com...[color=blue]
> Hello,
> I am using VS2005 Beta2 and I have added a Simple Line-Graph chart to a
> ReportViewer control.
>
> I can click on the chart and alter for example the Minimum and Maximum[/color]
scale[color=blue]
> values of the Y-axis.
>
> The question I have is that, can I change these values from within my code
> and how?
>
> Thank you,
> Anil.[/color]


Anil
Guest
 
Posts: n/a
#3: Nov 19 '05

re: Setting Chart Properties Programmatically


Hi Alvin,

Unfortunately, I do not create the chart programmatically. I drag and drop
the chart onto the design surface from the ToolBox.

Do you have any sample code that shows how to create the charts (that come
with VS2005 Beta 2) programmatically?

Thank you for your help.

Anil.



"Alvin Bruney - ASP.NET MVP" wrote:
[color=blue]
> yup, if you create the chart programatically, store a reference to the chart
> for later use. you can then access the series for the chart that gives you
> access to the scaling object which in turn leads you to min/max property
>
> --
> Regards,
> Alvin Bruney [MVP ASP.NET]
>
> [Shameless Author plug]
> The Microsoft Office Web Components Black Book with .NET
> Now Available @ www.lulu.com/owc
> Forth-coming VSTO.NET - Wrox/Wiley 2006
> -------------------------------------------------------
>
>
>
> "Anil" <Anil@discussions.microsoft.com> wrote in message
> news:61060783-D8C2-43ED-BF3B-BAD9DB6226AD@microsoft.com...[color=green]
> > Hello,
> > I am using VS2005 Beta2 and I have added a Simple Line-Graph chart to a
> > ReportViewer control.
> >
> > I can click on the chart and alter for example the Minimum and Maximum[/color]
> scale[color=green]
> > values of the Y-axis.
> >
> > The question I have is that, can I change these values from within my code
> > and how?
> >
> > Thank you,
> > Anil.[/color]
>
>
>[/color]
Closed Thread


Similar ASP.NET bytes