• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 337
  • Last Modified:

how to input during run time?

Hi experts:

I want to input my datasets into ChartFx 2.0 OLE Custom Control and Microsoft Chart Control to draw chart DURING run time. I can not find any help file.

thanks  a  lot
0
tubs
Asked:
tubs
  • 2
1 Solution
 
zsiCommented:
It should be in the box that the control came in when you bought it.
0
 
bin_huwairibCommented:
tubs,

If you are talking about Microsfot Char Control then use Data property to draw chart during run time, see the following code.

Example
=======
Private Sub Command1_Click()
 Dim Column As Integer
 Dim Row As Integer
 
 With Form1.MSChart1
  .chartType = VtChChartType3dBar
  .ColumnCount = 8
  .RowCount = 8
  For Column = 1 To 8
   For Row = 1 To 8
    .Column = Column
    .Row = Row
    .Data = Row * 10
   Next Row
  Next Column
 End With
End Sub


Best regards
Bin Huwairib

0
 
tubsAuthor Commented:
Only half questions have been answered. How about ChartFx 2.0 OLE Custom Control? Code please!!!
0
 
bin_huwairibCommented:
tubs,

Here is how to use ChartFX 2.0 OLE Custom Control:

Private Sub Command1_Click()
 Call Chartfx1.OpenDataEx(COD_VALUES, 2, 8)
 Chartfx1.ThisSerie = 0
 Chartfx1.Value(0) = 30
 Chartfx1.Value(1) = 20
 Chartfx1.Value(2) = 40
 Chartfx1.Value(3) = 60
 Chartfx1.Value(4) = 50
 Chartfx1.Value(5) = 15
 Chartfx1.Value(6) = 24
 Chartfx1.Value(7) = 35
 Chartfx1.ThisSerie = 1
 Chartfx1.Value(0) = 45
 Chartfx1.Value(1) = 60
 Chartfx1.Value(2) = 30
 Chartfx1.Value(3) = 60
 Chartfx1.Value(4) = 80
 Chartfx1.Value(5) = 45
 Chartfx1.Value(6) = 15
 Chartfx1.Value(7) = 45
 Call Chartfx1.CloseData(COD_VALUES)
End Sub


Bin Huwairib
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now