Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > Extending MsChart Graph Problem


Reply
 
Thread Tools Display Modes
  #1  
Old 02-19-2004, 03:30 AM
Tman Tman is offline
Regular
 
Join Date: Aug 2003
Location: Nko****owa Loc,Limpopo Pr
Posts: 87
Exclamation Extending MsChart Graph Problem


Hi Guys,

I am plotting on the Graph the data from my Database,so If I have five rows that I want to plot on my Graph, I would like my graph to extend its width which I got it,now my problem is when I plot values on a graph,It plot first value on the right columncount and plot the second value to the next columncount until it finish,What do I miss Here,Please help ? this is the Function I call to draw my Graph after I have loaded my Data into the MsFlexiGrid table.

Public Sub FillGraph()

Dim r, i As Integer

'MsChart1.RowCount = RowNumber
If RowNumber > 1 Then
MsChart1.Width = RowNumber * 5290.25
Else
MsChart1.Width = RowNumber * 5295
End If
MsChart1.Left = MsChart1.Width

For r = 1 To RowNumber
With MsChart1
.Column = 1
.RowCount = r

For PointValue = 1 To 12

ResultGrid.Col = PointValue + 4
stima1 = ResultGrid.Text
MsChart1.ColumnCount = PointValue
MsChart1.Data = stima1

Next PointValue

End With
Next r

MsChart1.Left = -103 + MsChart1.Width - MsChart1.Width
MsChart1.Legend.Location.LocationType = VtChLocationTypeLeft
End Sub

Please respond if you don't understand any of this problem.

Thanx in advance.
__________________
"This World would not be like how it is today if People were not sharing the information,A candle does not loose energy by lighting another candle."
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with sql statement and mschart giannicotina Database and Reporting 6 12-29-2003 05:34 PM
MSChart problem - flicking too much when moved and updated vlaev General 4 11-14-2003 01:38 AM
DirectShow objects don't render live filter graph Ray_A DirectX 0 11-06-2003 09:03 AM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->