# API

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

### Constants

```
F2.version // version
```

### Classes

* [F2.Chart](https://antv.gitbook.io/f2/api/chart): Chart.

### Namespaces

* [F2.G](https://antv.gitbook.io/f2/api/g): The renderer, based on html5 canvas.
* [F2.Shape](https://antv.gitbook.io/f2/developer/shape): Interface of Shapes in F2, can be used to customize shape for various geometries.
* [F2.Global](https://antv.gitbook.io/f2/api/global): Global configuration of F2, including styles of charts.
* [F2.Util](https://antv.gitbook.io/f2/api/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：

* [Chart](https://antv.gitbook.io/f2/api/chart)
* [Geometry](https://antv.gitbook.io/f2/api/chart/geometry)
* [Scale](https://antv.gitbook.io/f2/api/chart/scale)
* [Coordinate](https://antv.gitbook.io/f2/api/chart/coordinate)
* [Axis](https://antv.gitbook.io/f2/api/chart/axis)
* [Legend](https://antv.gitbook.io/f2/api/chart/legend)
* [Tooltip](https://antv.gitbook.io/f2/api/chart/tooltip)
* [Guide](https://antv.gitbook.io/f2/api/chart/guide)
* [Animation](https://antv.gitbook.io/f2/api/chart/animation)
* [Interaction](https://antv.gitbook.io/f2/api/chart/interaction)
* [Global](https://antv.gitbook.io/f2/api/global)
* [Util](https://antv.gitbook.io/f2/api/util)
* [G](https://antv.gitbook.io/f2/api/g)
* [Canvas API in F2](https://antv.gitbook.io/f2/api/canvas-api-in-f2)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://antv.gitbook.io/f2/api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
