473,738 Members | 2,645 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Setting Chart Properties Programmaticall y

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.
Nov 19 '05 #1
2 2722
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" <An**@discussio ns.microsoft.co m> wrote in message
news:61******** *************** ***********@mic rosoft.com...
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.

Nov 19 '05 #2
Hi Alvin,

Unfortunately, I do not create the chart programmaticall y. 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) programmaticall y?

Thank you for your help.

Anil.

"Alvin Bruney - ASP.NET MVP" wrote:
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" <An**@discussio ns.microsoft.co m> wrote in message
news:61******** *************** ***********@mic rosoft.com...
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.


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2196
by: Jim | last post by:
I have this chart on a form. I'm trying to get this chart to render only if the user chooses to do so. This because of that the chart is quite complex and takes some time to render. I know that I probably should put it on a report and call that report from the form but for various reasons I need the chart on this form. In a table bound to this form I have a Yes/No field and then from a checkbox the user should get to choose if the form is...
22
6796
by: PeteCresswell | last post by:
I've been to http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mschrt/html/vbobjtitleobject.asp, but still don't have a clue. For example, I've got a chart object namde 'grphStats' in a form named frmChart. ?Forms!frmChart!grphStats.Name returns "grphStats" as expected, but I can't get any further.
18
18410
by: Dixie | last post by:
Can I set the Format property in a date/time field in code? Can I set the Input Mask in a date/time field in code? Can I set the Format of a Yes/No field to Checkbox in code? I am working on a remote update of tables and fields and can't find enough information on these things. Also, how do you index a field in code?
2
2797
by: Homer | last post by:
Hi, Have a quick question: Lets say I have a Hashtable of values hence 56 37.890 1 12.768 5 9.764 etc.... Is there a way for me to draw a chart in C# of this. FYI its actually lottery numbers and the percentages of how often they have repeated. I fugured this would be a good
8
12451
by: dkelly | last post by:
I wish to create a report with a chart, but I want to use a SQL statement as the source of the data, using VBA code in the reports load event I found the following snippet Dim objGraph As Object, objDS As Object, rsData As Recordset Set objGraph = Me!Graph1.Object Set objDS = objGraph.Application.DataSheet
1
3725
by: John Bailo | last post by:
I'm looking for an api reference or more detailed examples for the use of the dojo chart widget. I've set up the example code, and can see roughly how I can manipulate it vi HTML. I am wondering if I can access its properties and methods programmatically via javascript? Especially if I can set the data series.
6
11081
by: | last post by:
I have made some user controls with custom properties. I can set those properties on instances of my user controls, and I have programmed my user control to do useful visual things in response to how those properties are set. I want to be able to do two other things: a) add User control instances to my page, filling in the place of placeholder controls, and b) programmatically setting custom properties on those dynamically spawned...
1
1637
by: =?Utf-8?B?U00=?= | last post by:
Hi, We have developed an application that transforms xsl into excel file and present xsl file to the user with data. We use open xml features of excel 2003. Our user is now asking for a chart to be part of transformed xl file. We tried to save the chart properties in the xsl and it is not saving the xsl with chart properties ( chart we are trying is simple pie chart) Appreciate if any one has a solution or idea for this to happen.
2
1645
by: SE.Computerguy | last post by:
I have a webcontrols menu on my webform (masterpage) that does not display the font color properties I set. In the IDE I set the properties and can see them in the html code but when I run the website the menu items default to forecolor=green and onHover=orange. I am setting and binding the sitemap provider programmatically at runtime. Could this be why the properties are not being applied?
0
9473
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9259
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9208
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8208
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6750
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6053
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4569
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4824
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3279
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.