Solved

I need a chart for a .net application

Posted on 2011-03-12
12
173 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
 
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
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

707 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

12 Experts available now in Live!

Get 1:1 Help Now