VB6 - MSChart1 values inside columns

Hi,

I would like to add the Label of each columns inside each columns instead of above? also i would like to have it with orientation 90 degrees. Is it also possible to have the text color in White inside the blue columns?

How can i do that?

Chart sample
Here is part of the code i have to generate above chart.
  With MSChart1
             '  .ShowLegend = True
            .EditCopy
            .EditPaste
            .ChartType = VtChChartType2dBar
            Set .DataSource = RS
            For i = 1 To .Column
                .Plot.SeriesCollection(i).DataPoints(-1).marker.Visible = False
                .Plot.SeriesCollection(i).DataPoints(-1).DataPointLabel.LocationType = VtChLabelLocationTypeAbovePoint
            Next

        End With

Open in new window

LVL 11
Wilder1626Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Chris WatsonSoftware DeveloperCommented:
Try this?

With MSChart1
	'  .ShowLegend = True
	.EditCopy
	.EditPaste
	.ChartType = VtChChartType2dBar
	Set .DataSource = RS
	For i = 1 To .Column
		.Plot.SeriesCollection(i).DataPoints(-1).marker.Visible = False
		.Plot.SeriesCollection(i).DataPoints(-1).DataPointLabel.LocationType = VtChLabelLocationTypeBelowPoint
		.Plot.SeriesCollection(i).DataPoints(-1).DataPointLabel.VtFont.VtColor.Set 255, 255, 255
	Next
End With

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Wilder1626Author Commented:
This looks pretty good. The only thing left would be to have it orientation 90 degrees. Is that possible?
0
Chris WatsonSoftware DeveloperCommented:
It probably is, but I wasn't able to find anything to demonstrate how to achieve it.
0
Wilder1626Author Commented:
I found it
.Plot.SeriesCollection(i).DataPoints(-1).DataPointLabel.TextLayout.Orientation = VtOrientationUp

Open in new window

1
Wilder1626Author Commented:
Thanks for your help. this is working great.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.