Solved

I need a chart for a .net application

Posted on 2011-03-12
12
213 Views
Last Modified: 2012-06-27
I need a chart for a vb.net application that I am developing

whats the easest way the data currently gets written to a file and am thinking of sending the data through the chart first and then send it to the file

or is it easier to assign an array and send the data to the array and connect the chart to the array
0
Comment
Question by:IanTh
[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
  • 7
  • 5
12 Comments
 
LVL 19

Accepted Solution

by:
Shahan Ayyub earned 500 total points
ID: 35121160
Hi!

My guess is that you should use MSChart Control.

Here is an example:
http://www.experts-exchange.com/Programming/Languages/.NET/Q_20955866.html
0
 
LVL 30

Author Comment

by:IanTh
ID: 35121536
thts from a dataset and my data is not in a dataset its in a flat txt file so I want to know the best practice for a chart

I am not prepared to use a dataset however
0
 
LVL 19

Assisted Solution

by:Shahan Ayyub
Shahan Ayyub earned 500 total points
ID: 35122165
Can you tell us about structure of your text file i.e., how you maintain data in text file ???

MsChart.ChartData property can help you to display data if text file will be convertible in array.
0
Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

 
LVL 30

Author Comment

by:IanTh
ID: 35122240
I was thinking of doing an array for the chart and when the array is full send it to the txt file and I could use the array as the chart input is that a good way to do it
0
 
LVL 19

Assisted Solution

by:Shahan Ayyub
Shahan Ayyub earned 500 total points
ID: 35122360
My apologize that your requirement is not clear to me that where you are getting trouble. Filling array first, then either binding chart to array OR writing array to file before chart binding, should not matter. But, binding chart first should preferable in a sense that user do not take interest in internal processing(which may take some time), something should be visible to the user first.

If you are getting trouble on reading and writing File (best practice) then use:
IO.File.ReadAllLines()
IO.File.WriteAllLines()
0
 
LVL 30

Author Comment

by:IanTh
ID: 35122806
actually just checked my code oops

its an csv file with 4 values

so can I use a csv as a m$chart input and how do I assign the 4 variables to the chart control
0
 
LVL 19

Assisted Solution

by:Shahan Ayyub
Shahan Ayyub earned 500 total points
ID: 35123536
>>just checked my code

Where is the attachment ???
0
 
LVL 30

Author Comment

by:IanTh
ID: 35123626
what attachment

can you put a csv into chart the csv has 4 elements all integers

How canb I tell m$cahrt to use the csv and tell m$chart how to deal with the input ie what scale they are from as some a 0-100 others are 0-20
0
 
LVL 19

Assisted Solution

by:Shahan Ayyub
Shahan Ayyub earned 500 total points
ID: 35130038
0
 
LVL 30

Author Comment

by:IanTh
ID: 35131084
Looks like the second one has it, be back soon when tested thanks
0
 
LVL 30

Author Comment

by:IanTh
ID: 35737118
decided to not do the chart as I am porting my vb.net application to linux c# and the chart will be on a web page looking at the database that my data it going to go into
0
 
LVL 30

Author Closing Comment

by:IanTh
ID: 35737125
going linux c# instead of vb.net  so no need of this windows chart
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

728 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