skiadas / PanthR

Statistics front-end and webserver with R connection
1 stars 2 forks source link

Javascript plotting tool #4

Open altermattw opened 11 years ago

altermattw commented 11 years ago

Uses HTML 5 canvas element to draw plots. May be able to use jstat library. Interactive: Can click on, e.g., x-axis and activate the dialog to change the label for that axis.

skiadas commented 11 years ago

It should further provide you information on a point when you hover over it/click on it. There are some good Javascript plotting libraries out there, we need to investigate.

krantzj commented 11 years ago

Hover is not possible on touch screens so that might be difficult.

John.

On 2/21/2013 3:28 PM, Haris Skiadas wrote:

It should further provide you information on a point when you hover over it/click on it. There are some good Javascript plotting libraries out there, we need to investigate.

— Reply to this email directly or view it on GitHub https://github.com/skiadas/PanthR/issues/4#issuecomment-13910973.

skiadas commented 11 years ago

I don't want to give up on hover altogether simply because touch screens don't support it, we might just have to find an analogous gesture. I expect people will still be using mouse-driven computers for some time and I would hate to lessen their experience.

I am actually thinking that most things that I would think of as happening on hover could happen when you click instead. So you could click/touch a point to have its information shown. I think at this point in the discussions we should think of "hover" more as "interact with/activate this element". How that interaction takes place might slightly vary from platform to platform and it is something we'll need to elaborate on down the road. What we need to zero in on is what functionality is exposed to the user, and how the user would go about accomplishing things in an efficient way.

Charilaos Skiadas Department of Mathematics Hanover College

On Feb 21, 2013, at 3:29 PM, John Krantz wrote:

Hover is not possible on touch screens so that might be difficult.

John.

On 2/21/2013 3:28 PM, Haris Skiadas wrote:

It should further provide you information on a point when you hover over it/click on it. There are some good Javascript plotting libraries out there, we need to investigate.

— Reply to this email directly or view it on GitHub https://github.com/skiadas/PanthR/issues/4#issuecomment-13910973.

— Reply to this email directly or view it on GitHub.

altermattw commented 11 years ago

There are several prototypes available that we should consider: Excel, Google Soreadsheet, etc. I like Deducer's PlotBuilder model of canvas plus palette, but i think we could improve the palette. Instead of dragging plot elements (e.g., points, means and confidence intervals) it would be simpler to just click them. Like PlotBuilder, subsequent components should guess on their values: if the first component put time on the x-axis, then the second component will keep time on that axis.

In addition to having a palette of plot objects, we might also enable the option of dragging variables onto the plot, making a guess about how they are displayed, and then permitting modification.

PlotBuilder does not permit exchanging one component for another; instead, you need to delete or remove it and then add the new one. We should enable an Excel-like "change plot type" to permit users to swap points for lines.