How to make a historical graph in visual studo, visual basic window form app

Hahhuh456 21 Reputation points
2022-09-28T07:46:24.89+00:00

Hello.
So I posted on here before to make a real time graph in visual studio. Now I have to make a historical graph that shows data for 12 hours, 7 days and a month.
the data is from a CSV files that updates.

I want to make a continuous filtration process in the CSV file that shows the data for 12 hours, 7 days and a month is the visual basic window form app.

If not a filtration process in the CSV file I am open to other options that might work to show the data for 12 hour graph, 7 days graph and a month graph.

https://drive.google.com/file/d/1Sg8FSRoGb6C8yDpsMsayPZ7yoKgKC10G/view?usp=sharing

above is the link for the CSV file

https://learn.microsoft.com/en-us/answers/questions/995486/how-to-make-a-real-time-graph-in-visual-studio-vis.html

above is the link for the previous question

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,811 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,539 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. LesHay 7,126 Reputation points
    2022-09-29T17:48:33.603+00:00

    Hi
    So far so good. Having rediculous issues trying to post an answer. After many many attempts, I think this post contains both the image and the Form1.vb code (posted as a text file attachment due to pure code block being rejected).

    246148-111.png

    246183-form1.txt

    1 person found this answer helpful.

  2. LesHay 7,126 Reputation points
    2022-09-29T14:42:29.66+00:00

    Hi

    246162-111.png

    246030-form1.txt

    Having all sorts of issues with this rubbish forum. I am trying to post an answer containing this small text, an image and a text file attachement. Third attempt now lets see if this one makes it through.

    FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED FAILED

    Now I get a message:
    Unable to execute your request
    We are sorry, but we are unable to execute your request at this time. You may be seeing this page because you attempted to submit a thread before its form was fully loaded. Please refresh this page and then try again. If this error persits, please enter a Site feedback and provide details of the action you were trying to take.

    Sorry Microsoft, but it is your end that needs to fix 'before its form was fully loaded.' whatever that is! Of course, I am wasting my time typing this because it will not post.

    So, now no images or text files allowed to be posted ......................................... for a code orientated forum, this is about as stupid as it can get.

    246146-form1.txt

    0 comments No comments

  3. Olaf Helper 40,156 Reputation points
    2022-09-30T06:46:28.683+00:00

    a real time graph

    How do you define "real time"? Minutes, Seconds, Milliseconds?

    the data is from a CSV files that updates.

    Really, a CSV files with data worth for a month? How large is it? In which frequency it's updated?


  4. LesHay 7,126 Reputation points
    2022-09-30T21:52:31.467+00:00

    Hi
    This version uses a start date (DateTimePicker1), and also has a routine to create a test data file of 42000 random data points (better than hapgazard data in OP). To make a test file, make sure you have a backup of the original data file as it will be overwritten.

    246598-111.png

    246509-form1.txt

    0 comments No comments