Solved

Series labels on MSChart control

Posted on 2001-07-02
2
1,437 Views
Last Modified: 2008-03-10
I have an MSChart control that reads data from text files and displays a 2D line chart. I have couple of questions:

1. I can change the scale on vertical axis, but can not change on X Axis. How do I change the scale on X-axis?

2. I would like to display series labels on the chart. I don't know how to...

Thanks in advance.
Mani
0
Comment
Question by:mani_ravipati
2 Comments
 
LVL 43

Accepted Solution

by:
TimCottee earned 50 total points
ID: 6247954
mani_ravipati,

1) If you are using a line graph, changing the scale may not have much of an effect. It may be better to use an x-y chart type. To set the scale use:

Chart1.Plot.Axis(VtChAxisIdX).ValueScale.Minimum = 0
Chart1.Plot.Axis(VtChAxisIdX).ValueScale.Maximum = 100
Chart1.Plot.Axis(VtChAxisIdX).ValueScale.MajorDivision = 5
Chart1.Plot.Axis(VtChAxisIdX).ValueScale.MinorDivision = 4

To set a scale of 0-100 with major markers every 20 and minor every 5. (The division is the number of markers within the relevant scale).

2) I don't think you can show a series label as such. You can set the legend to display and set the text for each series using:

Chart1.Plot.SeriesCollection(1).LegendText = "My Series One"
0
 

Author Comment

by:mani_ravipati
ID: 6261958
TimCottee,

thank you for the reply.
My main concern was to find a way to show the series labels on the chart itself, as i have many series to plot....displaying the legend was second option.. looks like i have to make it my only option now..

when i set the markers as u mentioned, the x-axis labels were aligned in wrong direction.

thank again.
Mani
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question