Hi All
Thanks for the help n the decoding, made sense after I read it a few times.
I am now graphing the data with the simple code below, which works fine but
my format is all wrong.
How do you format the number into "General Number"? I know its possible
because I can do it in excel and its the same control.
Private Sub Draw_Graph()
'************** *************** *************** ****
' PURPOSE :- To draw the graph
' INPUTS :-
' OUTPUTS :-
'************** *************** *************** ****
ReDim GraphData(Graph _Data_Max(0), 2)
For X = 1 To Graph_Data_Max( 0)
GraphData(X, 1) = 1
GraphData(X, 2) = Graph_AVG_Strok es(X)
Next
ChartData.Chart Data = GraphData
ChartData.Plot. Axis(VtChAxisId X).ValueScale.M ajorDivision = 200
ChartData.Plot. Axis(VtChAxisId X).ValueScale.M inorDivision = 50
ChartData.Plot. Axis(VtChAxisId X).ValueScale.M inimum = 0
'I need to format the numbers here some where
ChartData.Plot. Axis(VtChAxisId X).Tick.Style = VtChAxisTickSty leNone
End Sub
--
Regards
Dillon Mantle
Thanks for the help n the decoding, made sense after I read it a few times.
I am now graphing the data with the simple code below, which works fine but
my format is all wrong.
How do you format the number into "General Number"? I know its possible
because I can do it in excel and its the same control.
Private Sub Draw_Graph()
'************** *************** *************** ****
' PURPOSE :- To draw the graph
' INPUTS :-
' OUTPUTS :-
'************** *************** *************** ****
ReDim GraphData(Graph _Data_Max(0), 2)
For X = 1 To Graph_Data_Max( 0)
GraphData(X, 1) = 1
GraphData(X, 2) = Graph_AVG_Strok es(X)
Next
ChartData.Chart Data = GraphData
ChartData.Plot. Axis(VtChAxisId X).ValueScale.M ajorDivision = 200
ChartData.Plot. Axis(VtChAxisId X).ValueScale.M inorDivision = 50
ChartData.Plot. Axis(VtChAxisId X).ValueScale.M inimum = 0
'I need to format the numbers here some where
ChartData.Plot. Axis(VtChAxisId X).Tick.Style = VtChAxisTickSty leNone
End Sub
--
Regards
Dillon Mantle
Comment