Graph OnMouseOver events...
Moderators: Developers, Moderators
Graph OnMouseOver events...
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.
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]
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
FlashChart's do this pretty well. I don't know about here. There are some complexities to this.
TheWitness
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?
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?
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: Graph OnMouseOver events...
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.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.
Reinhard
Re: Graph OnMouseOver events...
how the zoom-functionality works ?gandalf wrote: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.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.
Reinhard
[i]Born to be online![/i]
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
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]
[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]
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
And still doesn't help with retrieving the actual value at that time in a fast-enough way to be interactive.gandalf wrote:...and which is not as exact as you may want for your original requestrony wrote:Some trickery to figure out where your mouse cursor is in relation to the image. Which changes depending on the version of RRDtool.
Reinhard
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!)
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!)
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
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!)
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!)
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
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?
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?
Who is online
Users browsing this forum: No registered users and 1 guest