Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #1938 > unrolled thread
| Started by | fabrice.leal.ch@gmail.com |
|---|---|
| First post | 2013-07-16 01:06 -0700 |
| Last post | 2013-07-16 09:37 -0700 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.graphics.apps.gnuplot
SVG: information about original datapoints fabrice.leal.ch@gmail.com - 2013-07-16 01:06 -0700
Re: SVG: information about original datapoints sfeam <sfeam@users.sourceforge.net> - 2013-07-16 09:37 -0700
| From | fabrice.leal.ch@gmail.com |
|---|---|
| Date | 2013-07-16 01:06 -0700 |
| Subject | SVG: information about original datapoints |
| Message-ID | <bec075c2-ed84-4162-8c34-b41541ead73c@googlegroups.com> |
Is it possible to include some sort of datapoint information in the SVG terminal (or perhaps the js one ...), so that one can make interactive charts (as in, the user clicks a bar in a histogram, and I'm able to catch that event and pull more information from the server)? Is gnuplot even remotely prepared for such a future feature? I wouldn't mind triying to get that to work myself ...
[toc] | [next] | [standalone]
| From | sfeam <sfeam@users.sourceforge.net> |
|---|---|
| Date | 2013-07-16 09:37 -0700 |
| Message-ID | <ks3sge$pvm$1@dont-email.me> |
| In reply to | #1938 |
fabrice.leal.ch@gmail.com wrote: > Is it possible to include some sort of datapoint information in the > SVG terminal (or perhaps the js one ...), so that one can make > interactive charts (as in, the user clicks a bar in a histogram, and > I'm able to catch that event and pull more information from the > server)? Not in the current version. > Is gnuplot even remotely prepared for such a future feature? Version 4.7 supports mouse-activated hypertext. When the mouse hovers over an anchor point, the text pops up in a little box. See: http://gnuplot.sourceforge.net/demo_svg_4.7/hypertext.html It would be an obvious extension to perform some action using the stored text as a parameter, e.g. treating it as a URL and trying to open a browser window. > I wouldn't mind triying to get that to work myself ... It would be nice to see some discussion about how such a capability would be presented to the user. I had a proof-of-principle patch to implement a similar feature quite a few years ago, but that was before the current hypertext infrastructure was added. I don't think that code is the best place to start in modifying the current gnuplot but it might provide some ideas. https://sourceforge.net/p/gnuplot/patches/400/ Old demo: http://skuld.bmsc.washington.edu/~merritt/gnuplot/index.html#svg+xlink Apart from the user interface, which as I say is open to discussion, I can tell you that implementing this for the HTML5 canvas terminal is trivial and for svg is not much harder. But I have no idea how to do it for the other "modern" terminals however (wxt, qt, win). Ethan
[toc] | [prev] | [standalone]
Back to top | Article view | comp.graphics.apps.gnuplot
csiph-web