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


F2.version // version



  • 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.


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: