Solved

MSChart Control

Posted on 1998-12-08
1
838 Views
Last Modified: 2013-12-25
Hi guys,
: I have a problem in getting a chart displayed in a particular format.Iam using MSChart control for this.Is it possible to draw in
: the following format using MSchart.if not is there any other ActiveX control which supports the problem.

:     Parts
: 2000_|                  ___________
: .....|             D1   |          |
: .500_|__________________|          |______
: .....|
: .200_|        __________
: .....| D2     |         |
: ..10_|________|         |_____
: .....|
: .....|______________________________
: .........|    |    |    |     |     |
: ........Jan..Feb..Mar..Apr...May...June...

: ........------------------->MONTHS

: The labels in the x axis are the  months.
: The values in the y axis are the total quantity of parts.
: Here I have a problem in plotting a graph in the required way as x axis takes only the labels and not the values.I just wanted to
: divide the month(x axis) into no of days(units).Which I was not able to do.Is There any method or property or object which
: can print in the desired way.Please help out.Please ignore the dots in the chart.

: Raghavendra Tantri
   











0
Comment
Question by:sriven3
1 Comment
 
LVL 1

Accepted Solution

by:
tommy_boy earned 50 total points
ID: 1488799
If you wish to have days, then you need to have days stored in the Array which will be used to plot the graph.
ie.

Dim arrayName(days, no_of_columns)

With MSChart1
        .Plot.Axis(VtChAxisIdY).ValueScale.Auto = False
        .Plot.Axis(VtChAxisIdY).ValueScale.Minimum = 0
        .Plot.Axis(VtChAxisIdY).ValueScale.Maximum = maxVal
        .ChartData = arrayName()
End With

MaxVal is the number of days, not the months

Ok, now with your your graph
In the Axis Tab of the Chart Properties, make sure that Show Scale is true and that Auto Scaling is off.

Set Divisions Per Label to 10
Set Divisions Per Tick to 10

This will increment the graph by 10 (you'll find that if you use every day the graph wil be cluttered), but you can leave it as AutoScale if you want to plot everyday.





0

Featured Post

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Specify ip address in my connection string for sas 2 59
Add a task in Outlook from access 11 39
Help me. 3 54
Export Data to Different .csv Files 26 105
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

770 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