Graph OnMouseOver events...

Anything that you think should be in Cacti.

Moderators: Developers, Moderators

Post Reply
User avatar
mojiro
Cacti User
Posts: 121
Joined: Sun Jul 24, 2005 12:20 pm
Location: Ireland, Dublin

Graph OnMouseOver events...

Post by mojiro »

I will suggest some new features for the graphs using javascript.

Let's say that we are viewing a graph, we are able to zoom-in it selecting an area.

Why not, be able to view the timestamp that the mouse is over and moreover the graph values.
[i]Born to be online![/i]
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

FlashChart's do this pretty well. I don't know about here. There are some complexities to this.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Graph OnMouseOver events...

Post by gandalf »

mojiro wrote:I will suggest some new features for the graphs using javascript.

Let's say that we are viewing a graph, we are able to zoom-in it selecting an area.

Why not, be able to view the timestamp that the mouse is over and moreover the graph values.
The main reason to this is, that there is no builtin rrdtool support for this. And there's no interface to rrdtool to get the timestamp out of a png-relative position of a mouse pointer.
Reinhard
User avatar
mojiro
Cacti User
Posts: 121
Joined: Sun Jul 24, 2005 12:20 pm
Location: Ireland, Dublin

Re: Graph OnMouseOver events...

Post by mojiro »

gandalf wrote:
mojiro wrote:I will suggest some new features for the graphs using javascript.

Let's say that we are viewing a graph, we are able to zoom-in it selecting an area.

Why not, be able to view the timestamp that the mouse is over and moreover the graph values.
The main reason to this is, that there is no builtin rrdtool support for this. And there's no interface to rrdtool to get the timestamp out of a png-relative position of a mouse pointer.
Reinhard
how the zoom-functionality works ?
[i]Born to be online![/i]
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Some trickery to figure out where your mouse cursor is in relation to the image. Which changes depending on the version of RRDtool.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

rony wrote:Some trickery to figure out where your mouse cursor is in relation to the image. Which changes depending on the version of RRDtool.
...and which is not as exact as you may want for your original request
Reinhard
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

gandalf wrote:
rony wrote:Some trickery to figure out where your mouse cursor is in relation to the image. Which changes depending on the version of RRDtool.
...and which is not as exact as you may want for your original request
Reinhard
And still doesn't help with retrieving the actual value at that time in a fast-enough way to be interactive.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

It may be worth discussing this with Tobi Oetiker ...
Reinhard
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

It's also worth taking a look at nfsen, which appears to do pixel-accurate time extraction from it's rrd files. No y values, but accurate x. Nice tool, too!
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

With newer version of RRDtool, where you can define the outer boundary of the graph, you can do this all in Javascript. The problem we had before Tobi provided that option was that we had to approximate the location of the start of the graph-able area by taking the font size and the presence of a legend and fudging it.

However, if we support the new graph area parameter as a mandatory one, we should be able to do the zooming of multiple graphs at once.

Larry
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests