Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #1939
| From | sfeam <sfeam@users.sourceforge.net> |
|---|---|
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | Re: SVG: information about original datapoints |
| Followup-To | comp.graphics.apps.gnuplot |
| Date | 2013-07-16 09:37 -0700 |
| Organization | gnuplot development team |
| Message-ID | <ks3sge$pvm$1@dont-email.me> (permalink) |
| References | <bec075c2-ed84-4162-8c34-b41541ead73c@googlegroups.com> |
Followups directed to: comp.graphics.apps.gnuplot
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
Back to comp.graphics.apps.gnuplot | Previous | Next — Previous in thread | Find similar | Unroll thread
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
csiph-web