Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Horizontal Bar Chart With MSChart

Status
Not open for further replies.

Roebuck

Technical User
Apr 23, 2003
14
GB

Please could somebody tell me if (and how) it is possible to produce a horizontal bar chart using VB6 - I have tried the MSChart control but can only get a vertical bar chart.

My aim is to show the groups on the y axis (e.g. months) and the values extending horizontally on the x axis (e.g. number of sales)

Thanks in advance
 
Hi,

It's the ChartType property of the Chart OBject

Here's a list of type values
[tt]
Bar Clustered Bar xlBarClustered
3D Clustered Bar xl3DBarClustered
Stacked Bar xlBarStacked
3D Stacked Bar xl3DBarStacked
100% Stacked Bar xlBarStacked100
3D 100% Stacked Bar xl3DBarStacked100
[/tt]
:)

Skip,

Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 

The closest option available under the MSChart control seems to be VtChChartType2dBar.

Either can this be made to display horizontally or how would I access the stacked bar options you mention above?

Thanks
 

JoanneA,

If you have a specific question, it might be better to start a new thread.

Skip,
[sub]
[glasses] [red]A palindrome gone wrong?[/red]
A man, a plan, a ROOT canal...
PULLEMALL![tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top