Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

HELP !!!MSGraph Help

Posted on 1998-11-19
1
Medium Priority
?
447 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
[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 12

Accepted Solution

by:
mark2150 earned 300 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

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

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…
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 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…
Suggested Courses

636 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