Solved

HELP !!!MSGraph Help

Posted on 1998-11-19
1
422 Views
Last Modified: 2008-02-26
When using MSCHART how do I create a pie graph exactly for 100 percent and a bar graph with only 5 different bars with its legend.
0
Comment
Question by:dipen
1 Comment
 
LVL 12

Accepted Solution

by:
mark2150 earned 150 total points
ID: 1445727
A 100% pie graph is a closed circle!

MSCHART has many drawbacks including being more-or-less impossible to print. Draw your own bars and such. Here is an example showing a double barchart for disk free space

'
With MSChart1
'
' Set up basic barchart
'
        .chartType = VtChChartType2dBar
        .Row = 1
        .ColumnCount = 0
                disksize = (insert your data here)
                diskfree = (ditto)
'
                    .ColumnCount = .ColumnCount + 1
                    .Column = .ColumnCount
                    .ColumnLabel = UCase$(Drive1.List(Drive)) + vbCrLf + LTrim$(Str$(Int(diskfree / disksize * 1000 + 0.5) / 10)) + "% " + LTrim$(Str$(Int(diskfree / 1000000))) + "/" + LTrim$(Str$(Int(disksize / 1000000))) + "Mb"
                    .Data = Int(diskfree / disksize * 1000 + 0.5) / 10
'
        .Refresh
    End With
'

0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
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…

707 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now