Solved

# HELP !!!MSGraph Help

Posted on 1998-11-19
435 Views
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
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
1 Comment

LVL 12

Accepted Solution

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

Question has a verified solution.

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

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…
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 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 Month2 days, 2 hours left to enroll