Jump to content
Software FX Community

PIE Chart


User (Legacy)
 Share

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...