473,985 Members | 10,242 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Create a timeline and plot details on this timeline

5 New Member
Hi all,

I have a database that logs certain events on my simulation. I need to create a timeline using VB then get the events from the database and plot them according to the log time that is stored in the database.

eventually the timeline will contain all the events according to the log time in the database and they will have details on each time plot.

Any idea how to start? was looking at MSchart but not something that i have in mind.

thanks in advance
Dec 10 '10 #1
11 9535
Guido Geurs
767 Recognized Expert Contributor
First put the data from the database in an array.
With this data You can write the code for the visualization of Your own chart layout.

Some questions to start:
Q1 Is it possible to attach in Bytes a GIF file or screen capture (a simple sketch) of the layout You want to see so we can have an idea in which direction we have to think?
(I have attached an example created with Paint).
Q2 Is it possible to attach an example of the data ?
Is it text ? how much char's,...
Q3 Must all the data be visible at once or if the mouse moves over the data-points, ...?
Attached Images
File Type: gif example.GIF (2.3 KB, 1441 views)
Dec 10 '10 #2
kennyang
5 New Member
hi,

the data would be something like this:

(LogTime, Action)
8:00:000, "BusID 1 Leaves Depot"
8:01:050, "BusID 1 stops at Bus stop A"
8:05:000, "BusID 1 Leaves bus stop A"

I hope to have the actions pointed to the timeline according to their logTime. The user can zoom in and out of the timeline to view the details.

the timeline can look something like what u have attached.

I was wondering if there are any timeline control that i can make use of in VB. Thanks!
Dec 12 '10 #3
Guido Geurs
767 Recognized Expert Contributor
Sorry but I don't see an attachment.
To attach in Bytes:
[Go Advanced] - [Manage attachments]
Dec 12 '10 #4
kennyang
5 New Member
hi,

I have uploaded a simple timeline. if the information gets too cluttered, the user can zoom in and out of it to view the details.

any current timeline in vb that i can make use of? if possible i hope to make use of certain .ocx that is available.
Attached Images
File Type: jpg timeline.jpg (9.6 KB, 3196 views)
Dec 13 '10 #5
Guido Geurs
767 Recognized Expert Contributor
I have googled and found nothing we can use.
To build a custom timeline is not such a big deal: analyze how You want it and calculate the points of the elements(lines, datalabels,...) .

I have done some brainstorming (maybe more storm than brains) but anyhow, we must start with some questions:

Q1: is it necessary to have a horizontal timeline?
Because a vertical one has better possibilities for setting the labels (see attached GIF).
Maybe no need to zoom to read the data?

Q2: How many datalines are there mostly in a timeline ? 10 ? 50 ? 100 ? 200 ?...

Q3: Are the coordinates of the timeline always the same:
From 8:00 to 17:00
Or are they fluctuating:
once 8:00 to 17:00
next 9:30 to 18:30
next 1:00 AM to 9:00 AM
next 22:00 to 7:00 AM next day ???

Q4: In the data, the time is represented by "8:01:050".
I suppose that 8= hours, 01 = minutes and 050 are thousands of seconds ???
Is it necessary the work with 1/1000 of a second ?
It can be set in the label but I suppose it's not relevant for the timeline?
Calculating the coordinates on hours and minutes will be enough ?

Q5: I have placed the data in a textfile for myself for developing and testing the program.
At startup I read the data in an array.
I suppose it's no problem for You to read the data from Your database into the array so we can work further in the program on the data in the array? (see attachment)
Attached Images
File Type: gif Ver Timeline.GIF (2.5 KB, 1164 views)
Attached Files
File Type: zip Create a timeline and plot details on this timeline_v1.0.zip (1.9 KB, 569 views)
Dec 13 '10 #6
Guido Geurs
767 Recognized Expert Contributor
These are the first tests.
It's with a vertical scale but for a horizontal one it's only calculating the LEFT instead of the TOP of the elements.
The datalabels are still overlapping but with a zoom of the hole scale can solve that.
Whats Your suggestions and remarks ?
Dec 14 '10 #7
Guido Geurs
767 Recognized Expert Contributor
It's also possible to stack the labels and (or) let the user place them. (see attachment)
Dec 15 '10 #8
kennyang
5 New Member
hi,

I have not really looked at your codes yet. appreciate your help =).

My way of doing:
its not efficient coding but i will just use it if it works.
i load my data into a sqlDataAdpater. Then create a panel to act as the timeline. i did a difference between the last time and the start time, then divide them by the width of the panel. now i will have the number of seconds represented by each pixel. so buy doing some calculation i draw my lines and plot the events on this time line.

still working on the zooming in of the information. will post some pics when available. Thanks once again.
Dec 15 '10 #9
Guido Geurs
767 Recognized Expert Contributor
No need to ZOOM (resize) the label!
Just use two labels: a label Minimum size with nothing in and a Label with all the data.
Just flip-Flop on "Visible" beween the two labels.
The user gets the impression that it zooms!

See attachment:
- Click on the labelData or LabelDataMin with the right mouse button to +zoom or -zoom.
- Click with Left mouse button on the full sized label (LabelData) and drag-drop it to replace the label.
Dec 15 '10 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

5
1554
by: michaaal | last post by:
I am trying to run this code on a Windows 2003 Server. I have ASP enabled. Any idea why it doesn't work? <% newDB = "new.mdb" newDB = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & newDB Set cat = CreateObject("ADOX.Catalog") cat.Create newDB
5
1794
by: Henry Jordon | last post by:
hello I was wondering if someone could help me get a main going on this project I've completed the header file that the professor started us on but not really sure how to get the main going. If someone could please give me some pointers it would greatly be appreciated. Again thanks for the help. Henry headerfile:
2
1489
by: Bassem | last post by:
Hi Everyone. Thanks for Help. Simply I want to create a file saved in it information but in the same time when anyone try to read this information couldn't understand the contents of the file. As an example: this is a contents of a file like the one I want. "]eŒ:  B$m{ڑG ً ے ے ZG
1
1105
by: Trint Smith | last post by:
How can I get a program in vs.net, when a user makes selections then clicks a button, to create a results page like one might get from google.com, yahoo.com or an ebay search? like this: photo | something | and some detail....... photo | something | and some detail....... photo | something | and some detail.......
2
998
by: Nocturnal | last post by:
I'm looking to create my own bootable CD. What I'd like to have on this bootable CD is all the major hard drive manufacture's diagnostic utilities. I was wondering how hard of a programming project this would be? I just want a basic interface after booting from a CD. Just something to select whatever tool necessary, from there, have the program start. What programming language would best suite this type of program? Is this...
0
997
by: davidw | last post by:
Quite often, when I modify my xml, I need locate the node, if the node doesn't exist, I need create the node. But usually, the node is several level deep, like field/field/field What is the best way to do that in C#? thanks!
1
1225
by: jiaudheen | last post by:
i have admin login form and status updation form. the admin get logged in and the update the status of the the customer smart card. the status page have a gridview which is bound to sqldatabase table which has fields.. 1. Application no. 2. apllication date. 3. customer name 4. status. ( in status column of the grid we have dropdowns holding 3 values. pending, produced, delivered). the status can be updated from the grid. now the...
1
1558
by: judge82 | last post by:
I want to create a website for my wedding and please I am new to flash, so make it simple for me http://www.weddingorg.com/avant-garde/avant-garde.html
1
7827
by: indyanguy | last post by:
Hello, I am trying to create a XML schema to validate a XML document. The XML document has recursive <Section> elements (as shown below). Can someone help me create the XSD for the recursive part (Section One and the children) <?xml version="1.0" encoding="UTF-8"?> <MenuHelp sectionHeading="" menuSpace=""> <Description>></Description> <Sections> <Section name="Application Help" url="" helpFileName="" isLegacy="1" code="">...
0
10377
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10192
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11865
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
11632
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10939
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
8495
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7644
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6444
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
5186
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.