Jump to content
Software FX Community

PIE Chart


User (Legacy)

Recommended Posts

Hello!

I'm developing our appl. at VB6 using ChartFX Client Server.

And I'm not good at ChartFX.

How can I draw pie chart?

When I worked with Bar-chart, I assigned value by the following way.

==============================================

ChartFX_Prop1.OpenDataEx COD_VALUES, 1, 8

For i = 0 To 7

ChartFX_Prop1.ValueEx(0, i) = ldbl_amt(i)

Next i

ChartFX_Prop1.CloseData COD_VALUES

===============================================

But with pie-chart, Nothing leaves for me to work!

In Property Tabpage, I selected the Gallery as Pie. But I can't assign value

to the graph?

Please, help me!!

Thank you very much in advance!

Link to comment
Share on other sites

There is no difference between passing data to a PIE chart and a BAR chart,

the chart type does dot affect the data, only the way the data is displayed.

The code you wrote:

ChartFX_Prop1.OpenDataEx COD_VALUES, 1, 8

For i = 0 To 7

ChartFX_Prop1.ValueEx(0, i) = ldbl_amt(i)

Next i

ChartFX_Prop1.CloseData COD_VALUES

Will work for any chart type including PIE, as a matter of fact, you can

create a new form, paste this code and add:

ChartFX1.Gallery = PIE

And you will get a PIE chart.

--

FP

Software FX, Inc.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...