Incorecttarget / protovis-js

Automatically exported from code.google.com/p/protovis-js
1 stars 0 forks source link

Not an issue -- just a stumbling block to note in the docs (if not already) #49

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Write a protovis visualization using anon functions, e.g., 
myMark.data(function(d) 
d.bandersnatch);
2. Use a script tag type="text/javascript"
3. Run in Chrome
4. Scratch head over the "Unexpected Identifier Error" caused by anonymous 
functions written 
without { braces }
5. *Headdesk* in frustration when noticing that the examples use the same 
notation and work 
fine. 
6. *Headdesk* a second time when recognizing that type="text/javascript" is not 
the same as 
type="text/javascript+protovis"

Solution:
Change the script tag type to type='text/javascript+protovis'.

Sorry if this is obvious or noted elsewhere -- I've been using the library for 
a week and a half and 
haven't run across mention of it, but I haven't been reading as carefully as I 
should be... 

Original issue reported on code.google.com by cameron....@gmail.com on 19 May 2010 at 7:10

GoogleCodeExporter commented 9 years ago
That's covered in the How-To: Getting Started tutorial:

  http://code.google.com/p/protovis-js/wiki/GettingStarted

However, the website currently lacks a good overview of the available 
documentation, so it's easy to miss! We're 
planning on reorganizing the documentation a bit so that things are easier to 
find. Sorry for your frustration!

Original comment by mbost...@gmail.com on 19 May 2010 at 7:29

GoogleCodeExporter commented 9 years ago
No worries whatsoever. I really appreciate all the examples and the philosophy 
behind the API.

Keep up the good work. 

Original comment by cameron....@gmail.com on 19 May 2010 at 8:22

GoogleCodeExporter commented 9 years ago
Better documentation overview: http://vis.stanford.edu/protovis/docs/

Original comment by mbost...@gmail.com on 1 Jun 2010 at 6:47

GoogleCodeExporter commented 9 years ago
Badical -- much appreciated :)

Original comment by pkgh...@gmail.com on 1 Jun 2010 at 11:36