Jump to content
Software FX Community

New User -> Need Directional Pointing


User (Legacy)

Recommended Posts

To All:

I am relatively new to ChartFX and just started creating my own charts (not

justupdating previous charts). We are using a combination of ChartFX CLient

Server, Active Reports and VB6. For the life of me, I can not figure out how

to get a stacked bar chart to work. I went through tons of newsgroups

postings, the API reference and user's guide. Everythign I try is wrong! I

only get the first series to show up.

Basically, I had a chart with one series I tried to update it to use 2

series instead. I have a recordset that has three values. The 2nd and 3rd

values I would like stacked, but can't figure it out!!! Any help (even just

potining me to the right section in the APIs would help).

Thanks In Advance,

Heath Golub

---> What I tried ...

variaus combinations of setting the correct chart type using ...

'ChartFX1.Gallery = BAR

'ChartFX1.Stacked = CHART_STACKED

ChartFX1.Series(0).Gallery = BAR

ChartFX1.Series(1).Gallery = BAR

ChartFX1.Series(1).Stacked = True

Various attempts to set the Data in the chart ...

Do While (rsMaturityDataBefore.EOF = False)

ChartFX1.Axis(AXIS_X).Label(lYearIndex) =

rsMaturityDataBefore.Fields("YearBefore").Value

ChartFX1.ValueEx(0, lYearIndex) =

rsMaturityDataBefore.Fields("MunicipalPercentageBefore").Value

ChartFX1.ValueEx(1, lYearIndex) =

rsMaturityDataBefore.Fields("TaxablePercentageBefore").Value

'ChartFX1.Series(0).Yvalue(lYearIndex) =

rsMaturityDataBefore.Fields("MunicipalPercentageBefore").Value

'ChartFX1.Series(1).Yvalue(lYearIndex) =

rsMaturityDataBefore.Fields("TaxablePercentageBefore").Value

lYearIndex = lYearIndex + 1

rsMaturityDataBefore.MoveNext

Loop

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...