The JavaScript bundles shipped with ECharts.
Assets live in priv/static and are served by ECharts.Phoenix.Plug (for
Phoenix applications) or imported by the Livebook kino. The Apache ECharts
bundle is vendored so charts work offline and do not depend on a CDN.
Only the files returned by files/0 are servable. Use path/1 when you
need to read a file yourself — for example to copy the bundles into a
custom static directory.
Summary
Functions
Returns true when name is a servable asset.
Returns the absolute path of the bundled assets directory.
Returns the vendored Apache ECharts GL version.
Returns the vendored Apache ECharts version.
Returns the names of every servable asset.
Returns the content type for a bundled asset.
Returns the absolute path of a servable asset.
Returns the file name of a plugin bundle.
Returns the supported plugin names.
Functions
Returns true when name is a servable asset.
@spec dir() :: String.t()
Returns the absolute path of the bundled assets directory.
@spec echarts_gl_version() :: String.t()
Returns the vendored Apache ECharts GL version.
@spec echarts_version() :: String.t()
Returns the vendored Apache ECharts version.
@spec files() :: [String.t()]
Returns the names of every servable asset.
Returns the content type for a bundled asset.
Returns the absolute path of a servable asset.
Raises ArgumentError for unknown names, which keeps path traversal out of
the plug.
Returns the file name of a plugin bundle.
Raises ArgumentError for unknown plugins.
@spec plugins() :: [String.t()]
Returns the supported plugin names.