Hellow:
I have the following VB6 code to get a scatter chart with MSChart: - Private Sub Form_Load()
-
Form1.Show
-
' POINTS
-
Dim Graph(1 To 41, 1 To 2) As Single
-
-
Graph(1, 1) = -9 ' value for X-axis
-
Graph(2, 1) = -5
-
Graph(3, 1) = 9
-
Graph(4, 1) = 9
-
Graph(5, 1) = 18
-
Graph(6, 1) = 9
-
Graph(7, 1) = 9
-
Graph(8, 1) = 0
-
Graph(9, 1) = 0
-
Graph(10, 1) = -18
-
Graph(11, 1) = -9
-
Graph(12, 1) = -9
-
-
Graph(1, 2) = -15 ' value for X-axis
-
Graph(2, 2) = -11
-
Graph(3, 2) = -14
-
Graph(4, 2) = -6
-
Graph(5, 2) = -3
-
Graph(6, 2) = 0
-
Graph(7, 2) = 8
-
Graph(8, 2) = 12
-
Graph(9, 2) = 4
-
Graph(10, 2) = -4
-
Graph(11, 2) = -7
-
Graph(12, 2) = -15
-
-
' GRAPH
-
MSChart1.chartType = VtChChartType2dXY ' set to X Y Scatter chart
-
MSChart1 = Graph
-
-
' DATA POINTS SHOW
-
With MSChart1
-
.Plot.Axis(VtChAxisIdX).Labels(1).VtFont.Size = 8
-
End With
-
-
'PLOT AREA COLOR
-
With MSChart1.Plot
-
' Set style to solid.
-
.Wall.Brush.Style = VtBrushStyleSolid
-
' Set color .
-
.Wall.Brush.FillColor.Set 221, 217, 195
-
-
'DATA POINTS SHOW & COLOR AND SERIE COLOR
-
With .SeriesCollection
-
With .Item(1).DataPoints(-1)
-
.DataPointLabel.LocationType = VtChLabelLocationTypeAbovePoint
-
.DataPointLabel.VtFont.VtColor.Set 0, 0, 0 '# black
-
.Brush.FillColor.Set 165, 0, 33
-
End With
-
End With '#seriescoll
-
End With
-
-
With MSChart1.Plot.Backdrop
-
' Property to VtFillStyleBrush.
-
.Fill.Style = VtFillStyleBrush
-
.Fill.Brush.FillColor.Set 197, 190, 151
-
' Border.
-
.Frame.Style = VtFrameStyleThickInner
-
' Set shadow.
-
.Shadow.Style = VtShadowStyleDrop
-
End With
-
-
End Sub
The problem: the chart plots a line from an unxisting Graph (0,0) point to the one my example begins with, Graph (1,1=-9;Graph(1,2)=-15).
Unsuccessfully, I have been trying to get rid off that.
I thank any help I could get.
Nelson
1 2521
Sorry I'm not familiar with the MSchart control (dabbled briefly but it was years ago), but I was wondering... could it simply require your array to begin at 0 rather than 1?
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Gerhard Swart |
last post by:
Good Morning,
I have a licensed .Net product. Meaning I can develop and deploy my
projects. I want to use MSChart in my latest project.
Now I am not sure about the licensing of MSChart. As far...
|
by: Martin Mrazek |
last post by:
Hi,
I use FSO ActiveXObject to save file from IE. In JS like
function saveToFile(pathN, content){
var fso, ts;
var ForWrite = 2;
fso = new ActiveXObject("Scripting.FileSystemObject");
ts =...
|
by: Steven Nagy |
last post by:
Hi all,
Is there a more interactive .NET component that does what the MSChart
does? Perhaps someone has developed something similar that is available
or for sale.
My requirement is for a...
|
by: Falquian |
last post by:
Hello to all
I have a problem that not like solving. I am creating an application of analysis that shows graphs. These graphs are Microsoft ActiveX objects, concretely the Microsoft Chart. When...
|
by: Suresh Bansal |
last post by:
Hi all
using MSCHART object in VB.NET requires to register at client node for plotting graphs in VB 2005.
Using Drawing namespace of Framework 2.0 provides rich functionality for plotting but...
| |
by: Tim Marshall |
last post by:
I tried to post this to microsoft.public.excel.programming yesterday via
Google, got a copy sent to me, but it's nowhere to be found on that
newsgroup. My normal ISP doesn't carry the Microsoft...
|
by: wai1985 |
last post by:
I have a line graph created using MSChart on VB6. However, I want to be able to move a point on the graph to another point, and then a message box displays.
Nobody seems to know how to do this.
...
|
by: peterchance |
last post by:
Hi
I am using VB 6 with MSCHART. I have no problem plotting my graphs but cannot change the Axis Scale on the fly. I can change it from the Property Page in design mode by turning off automatic...
|
by: Just_a_fan |
last post by:
I was working with MSChart, modifying one of the graphs and decided I
wanted this particular chart to have an auto scale. I worked quite a
while with it, uttered a few obscenities directed at the...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |