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
Solved

I need a chart for a .net application

Posted on 2011-03-12
12
199 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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
MailAddress in vb 4 29
SSRS 2016 Rendering HTML tables 3 29
Groupbox Control ? 2 19
Must we use a disconnected model when creating database applications? 6 16
Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

828 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