interactive graphs for a webpage?

classic Classic list List threaded Threaded
2 messages Options
J P
Reply | Threaded
Open this post in threaded view
|

interactive graphs for a webpage?

J P
Hello,

Is there a way to create interactive graphs for posting to a website using SPSS 22? The interactivity I am looking for is primarily including/excluding specific subgroups. My friend google and I have not been able to find a thing, so my assumption is that this is not possible, but thought it worth while to query the collective wisdom of this list.

Thanks in advance,
John
===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: interactive graphs for a webpage?

Andy W
Directly within the SPSS output if you use the Graphboard template GUI and specify animation you can get this behavior -- but unfortunately it does not appear you can get the interactivity when exporting to a html document. (I wouldn't claim expertise in this though - I don't play around with those templates very much - so maybe someone from SPSS can come and say if I'm mistaken and this capability exists somewhere.)

You can export to JPG with tooltips - see here for one example, https://dl.dropboxusercontent.com/s/t2r2ph0abd4dvnd/ECDFChart.html, and here for a tutorial https://www.ibm.com/developerworks/mydeveloperworks/blogs/SPSSStatisticsGraphHints/entry/creating_tooltip_popups_for_charts_exported_as_html15?lang=en



***************************************************.
SET SEED 10.
INPUT PROGRAM.
LOOP #i = 1 TO 300.
  COMPUTE X = RV.NORMAL(0,1).
  COMPUTE Y = RV.NORMAL(0,1).
  COMPUTE Cat = TRUNC(RV.UNIFORM(1,11)).
  END CASE.
END LOOP.
END FILE.
END INPUT PROGRAM.
DATASET NAME Test.
EXECUTE.
FORMATS Cat (F2.0).
VARIABLE LEVEL Cat (NOMINAL).

GGRAPH
  /GRAPHDATASET NAME="graphdataset"
    VARIABLES=Y[LEVEL=scale] Cat[LEVEL=nominal] X[LEVEL=scale]
    MISSING=LISTWISE REPORTMISSING=NO
  /GRAPHSPEC SOURCE=VIZTEMPLATE(NAME="Scatterplot"[LOCATION=LOCAL]
    MAPPING( "Animation"="Cat"[DATASET="graphdataset"] "x"="X"[DATASET="graphdataset"]
    "y"="Y"[DATASET="graphdataset"]))
    VIZSTYLESHEET="Traditional"[LOCATION=LOCAL]
    LABEL='SCATTERPLOT: X-Y'
    DEFAULTTEMPLATE=NO.
***************************************************.



Andy W
apwheele@gmail.com
http://andrewpwheeler.wordpress.com/