[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 221
  • Last Modified:

I need a chart for a .net application

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
IanTh
Asked:
IanTh
  • 7
  • 5
5 Solutions
 
Shahan AyyubSenior Software Engineer - iOSCommented:
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
 
IanThAuthor Commented:
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
 
Shahan AyyubSenior Software Engineer - iOSCommented:
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
Industry Leaders: 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!

 
IanThAuthor Commented:
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
 
Shahan AyyubSenior Software Engineer - iOSCommented:
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
 
IanThAuthor Commented:
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
 
Shahan AyyubSenior Software Engineer - iOSCommented:
>>just checked my code

Where is the attachment ???
0
 
IanThAuthor Commented:
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
 
Shahan AyyubSenior Software Engineer - iOSCommented:
0
 
IanThAuthor Commented:
Looks like the second one has it, be back soon when tested thanks
0
 
IanThAuthor Commented:
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
 
IanThAuthor Commented:
going linux c# instead of vb.net  so no need of this windows chart
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 7
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now