Solved

MSChart Control

Posted on 1998-12-08
1
844 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month10 days, 1 hour left to enroll

624 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