Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
50 lines (34 sloc) 1.2 KB

API

After requiring F2, The global namespace F2 can be used.

Constants

F2.version // version

Classes

Namespaces

  • F2.G: The renderer, based on html5 canvas.
  • F2.Shape: Interface of Shapes in F2, can be used to customize shape for various geometries.
  • F2.Global: Global configuration of F2, including styles of charts.
  • F2.Util: Some utility functions.

Functions

F2.track(true);      // open version usage monitoring
F2.track(false);     // close version usage monitoring

This method is used for monitoring F2's version usage in H5 environment. It is opened by default. If you don't want us to know your version usage or this method is bothering you, please use F2.track(false) to closed it.

More API: