Graphics Reference
In-Depth Information
Figure 8-5: These are the same circles as before, but this time the script
creates the SVG portion on-the-fly when the script executes.
Accessing data from local files is blocked by many web browsers for security
reasons, so for the purposes of the examples presented here, let's use data
directly in the code or simply extract it into a separate JavaScript file.
This next example has a list of data, [20,50, 75, 40] . Four circles are
created based on this data.
 
Search WWH ::




Custom Search