Avatar of Wilder1626
Wilder1626
Flag for Canada asked on

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

Visual Basic Classic

Avatar of undefined
Last Comment
Wilder1626

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Chris Watson

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Wilder1626

ASKER
This looks pretty good. The only thing left would be to have it orientation 90 degrees. Is that possible?
Chris Watson

It probably is, but I wasn't able to find anything to demonstrate how to achieve it.
Wilder1626

ASKER
I found it
.Plot.SeriesCollection(i).DataPoints(-1).DataPointLabel.TextLayout.Orientation = VtOrientationUp

Open in new window

Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Wilder1626

ASKER
Thanks for your help. this is working great.