Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

xy scatter graph in vb 6.0

Posted on 2009-04-01
7
Medium Priority
?
825 Views
Last Modified: 2012-05-06
I want to use whatever capability vb 6.0 has to make graph in it using data from an array.
in short:
Data type : xyscatter
X data : xVAlues(20)
Y data: yValues(20)
Min of x axis: -20
MaximumMin of x axis: -20
min of y axis : 20
 max of x axis : 20
Can I use the mschart1 capability to do this task.
Thank you for the anticipated help of all the experts.
0
Comment
Question by:Aiysha
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 
LVL 19

Accepted Solution

by:
Rimvis earned 2000 total points
ID: 24047105
Check this:

Creating 2D XY scatter charts on an unbound MSChart Control
http://vbcity.com/pubs/article.asp?alias=scatter_charts
0
 

Author Comment

by:Aiysha
ID: 24072883

My code is based on the link you have send, I have adapted it according to my needs, all is need to be able to put text in the label for the points.
0
 
LVL 19

Expert Comment

by:Rimvis
ID: 24074910
Like this?

    With .Plot.SeriesCollection(CurSeries * 2 - 1).DataPoints(-1).DataPointLabel
        .LocationType = VtChLabelLocationTypeAbovePoint
        .VtFont.Size = 8
    End With

Open in new window

0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:Aiysha
ID: 24112384
I am trying to put a text label on the data points in the mschart1 ..so far I have the following code which does not work

For lRow = 1 To UBound(ChartPoints, 1)
 .plot.SeriesCollection(1).DataPoints(-1).DataPointLabel.LocationType = VtChLabelLocationTypeLeft
 .plot.SeriesCollection(1).DataPoints(-1).DataPointLabel.Custom = True
 .plot.SeriesCollection(1).DataPoints(-1).DataPointLabel.Component = VtChLabelComponentSeriesName
 .plot.SeriesCollection(1).DataPoints(-1).DataPointLabel.Text = T(lRow)
   
Next lRow
0
 
LVL 19

Expert Comment

by:Rimvis
ID: 24114018
Sorry, not sure how to do it...
0
 

Author Comment

by:Aiysha
ID: 25899373
None of the above solution worked for me. I ended up opening an excel workbook in vb 6.0 and looking at my graph as if working directly in Excel.

0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question