Solved

I need a chart for a .net application

Posted on 2011-03-12
12
191 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
  • 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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

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…
I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

813 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now