473,385 Members | 1,727 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to substitute labels on the X axis using Chart Control of the Visual Studio 2008

I need to show actual values from Series on the X axis of the chart instead of default ones. How to do so using Chart Control of the Visual Studio 2008 Professional?

Code (just in case) is placed below. Thank you, Terry.

Expand|Select|Wrap|Line Numbers
  1. private void showChart(object dataSource)
  2. {
  3.     if (TabControlMain.TabPages.Count == 2) 
  4.     { 
  5.  TabControlMain.TabPages.Add(tabChart); 
  6.     } 
  7.     TabControlMain.SelectedTab = TabControlMain.TabPages[2]; 
  8.     chartCyt.DataSource = dataSource; 
  9.     chartCyt.Series[0].XValueMember = "Concentration"; 
  10.     chartCyt.Series[0].YValueMembers = "Mean"; 
  11.     chartCyt.Series[0].LegendText = "Mean";
  12.     chartCyt.Series[1].XValueMember = "Concentration";
  13.     chartCyt.Series[1].YValueMembers = "Stddev";
  14.     chartCyt.Series[1].LegendText = "StdDev";
  15. }
Sep 29 '09 #1
0 1603

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Ratnakar Pedagani | last post by:
Hi, I'm Ratnakar Pedagani. I'm writing a program in visual basic to display XYscatter or line chart. I'm getting values from a file which consists of 10000 lines. For every line in the file i...
2
by: borekfm | last post by:
Hitting two problems when running a new report I've created, that contains a chart/graph. The chart shows three series, two are shown as lines and one as an area. The data come from three different...
3
by: Claus Haslauer | last post by:
Hi, I want to create a chart value (y-axis) vs. time (x-axis). In fact very similar to the xy(scatter) example in the graph10.chm help-file. I ran into problems, so I started a very basic *.mdb...
0
by: spm_no | last post by:
Hi, I am using Access 2002 and am creating a scatter-chart on a form in which the X-axis is a date. I can format and display the x-axis properly as a date. However, when I close and reopen...
14
by: pmud | last post by:
Hi, I need to use an Excel Sheet in ASP.NET application so that the users can enter (copy, paste ) large number of rows in this Excel Sheet. Also, Whatever the USER ENETRS needs to go to the...
0
by: Marcin Zmyslowski | last post by:
Hello all! I have the following problem. I would like to move the x axis values from my chart. The X Axis Values are very near the x axis, that`s why I want to put a space between the x axis...
1
by: ken | last post by:
Hi, How do you change the font for the data labels on your bar graph report/chart? I have 24 series, and when I change the font of the data label for one series that does not change them all......
2
by: smith.mariya | last post by:
hi, i am mariya. i am working on vb.net. i have created the powerpoint addin. i have inserted the chart on the slide through vb.net code. now, i want to remove the gridlines on the chart and want...
1
by: Andy | last post by:
Hi there, I have an asp.net 2 application, and created a local report using MS ReportViewer. The report consists of a line chart, with date intervals on the x axis, and amounts of money in the y...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.