Skip to content

Provides graceful degradation of js-multigraph to Flash if the browser doesn't support canvas or svg

License

Notifications You must be signed in to change notification settings

multigraph/multigraph-degrade

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This file allows for the graceful degradation of js-multigraph to Flash in cases where the browser does not support canvas or svg.

To use this functionality include the file after the declaration of Multigraph.

<script type="text/javascript" src="multigraph-degrade.js"></script>

If you have a local copy of the Multigraph swf that you would like to use, then you can specify its location by either passing it as an option in your call to multigraph using a key of swf.

$(".multigraph").multigraph({
    "swf"  : "Path_to_Multigraph.swf"
    "mugl" : "Path_to_Mugl.xml"
});

Or you can include the location of the swf by including it as an attribute on the DOM Elements you target with a key of data-swf.

<div class="multigraph" data-swf="Path_to_Multigraph.swf" data-src="Path_to_Mugl.xml"/>

About

Provides graceful degradation of js-multigraph to Flash if the browser doesn't support canvas or svg

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published