Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

MSChart Control

Posted on 1998-12-08
1
Medium Priority
?
846 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 100 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…
Suggested Courses

719 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