amCharts 5

v1.11.1
io.github.amcharts/amcharts5 Checked 39 minutes ago Published 5 days ago

On-demand access to amCharts 5 docs, code examples, and API reference

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_chart_types List chart types

List all amCharts 5 chart types with their categories and reference file names

get_chart_reference Get chart reference

Get the reference documentation for a specific amCharts 5 chart type. A reference longer than 12,000 characters comes as an overview: its first parts in full and a list of the others, each of which get_section returns. With `full: true` it is the whole file. The chart type keywords are listed by list_chart_types.

ParameterTypeDescription
chartType *stringChart type keyword, e.g. 'pie', 'sankey', 'xy', 'treemap', 'map', 'radar', 'stock', 'gantt', 'venn', 'wordcloud', 'timeline', 'flow', 'hierarchy', 'ui-elements'
fullbooleantrue: the whole reference, however long. false (default): an overview when it is long.

get_core_reference Get core reference (setup, themes, pitfalls)

Get the core amCharts 5 reference (SKILL.md) — covers setup, colors, themes, legends, tooltips, events, data, adapters, disposal, and common pitfalls. It is the base for every chart type; the chart-specific references build on it. It comes as an overview: its first sections, up to 12,000 characters, and a list of the others, each of which get_section("SKILL", heading) returns. With `full: true` it is the whole file.

ParameterTypeDescription
fullbooleantrue: the whole SKILL.md (about 122,000 characters). false (default): the overview.

search_docs Search docs

Search the curated amCharts 5 skill docs (SKILL.md + chart references) for a keyword or topic, returning matching sections ranked by relevance. By default it searches only the skill layer. With scope 'all' it also searches the extended docs, the per-class API reference and the code examples. Per-setting defaults (e.g. tooltip background cornerRadius, axis tick `visible` default, cursor line strokeDasharray) are in the extended docs and the API reference, which search_all, get_api_reference and get_doc also return.

ParameterTypeDescription
query *stringSearch query, e.g. 'legend', 'axis label rotation', 'tooltip format', 'data processor'
maxResultsnumberMaximum number of results to return (default 5, 1 to 50)
scopestring'skill' (default) searches only the curated skill docs; 'all' also searches the extended docs / per-class API reference where settings and defaults live, and the code examples.

get_section Get doc section

Get the full text of one section of a doc by heading, for example a section that a search_docs or search_all result shows truncated. `file` accepts the source label exactly as search results print it ('skill/SKILL.md', 'skill/xy', 'extended/charts/xy-chart/cursor', 'reference/xycursor') as well as a bare skill file name ('SKILL', 'xy', 'map').

ParameterTypeDescription
heading *stringSection heading to retrieve (case-insensitive substring), e.g. 'Core setup pattern', 'Axis types', 'Common pitfalls', 'Recent API changes'. A ### subsection heading returns just that subsection, and a…
chartTypestringThe same as `file`, for a chart type's reference ('hierarchy', 'xy'), as get_chart_reference takes it.
filestringDoc identifier: a skill file ('SKILL', 'xy', 'pie', 'map') or a source label from search results ('skill/SKILL.md', 'extended/concepts/events', 'reference/xycursor'). '.md' and 'skill/' / 'extended/'…

get_quick_start Get quick-start template

Get a working example to start from for a chart type: the reference's example, or the amCharts demo of that name. For a longer request it gives the closest example and says so. For a framework ('react', 'vue', 'angular', 'svelte') it gives how to use amCharts there.

ParameterTypeDescription
chartType *stringChart type, e.g. 'pie', 'line', 'stacked column', 'map', 'sankey', 'treemap', or a framework, e.g. 'react'
formatstringOutput format: 'html' for script tags (cdn.amcharts.com, with the npm-CDN equivalent on jsDelivr/unpkg for pages that may load only from npm CDNs), 'esm' for ES module imports

search_all Search all content

Search across all amCharts 5 content: skill references, full documentation, and code examples. For broad searches across everything.

ParameterTypeDescription
query *stringSearch query, e.g. 'react integration', 'date axis formatting', 'stacked bar example'. An amcharts.com link (a demo or a docs page) is answered with the call that returns it.
maxResultsnumberMaximum results (default 10, 1 to 50)

get_doc Get doc page

Get a full documentation page — an extended doc by path, or a skill file by 'skill/<name>'. Paths are the source labels that search_docs and search_all print.

ParameterTypeDescription
path *stringDoc path, e.g. 'charts/xy-chart/cursor', 'concepts/events', 'getting-started/integrations/react', 'reference/xycursor' (per-class API), or a skill file such as 'skill/SKILL.md' / 'skill/xy'. A docs ad…

get_api_reference Get API reference

Get the per-class API reference for an amCharts 5 class: the class page plus its settings table (with defaults) and, optionally, its private/read-only settings. It is generated from the library's typings, so it has the exact setting names and default values (e.g. tooltip background cornerRadius, axis tick `visible` default). Takes a class name in any casing, e.g. 'XYCursor', 'Tooltip', 'PieSeries', 'AxisRendererX'.

ParameterTypeDescription
classNamestringamCharts 5 class name, e.g. 'XYCursor', 'Tooltip', 'PieSeries', 'ColumnSeries', 'AxisRendererX'. Casing/punctuation are ignored. Its reference address works too: 'https://docs.amcharts.com/v5/referenc…
includePrivatebooleanAlso include the private (read-only / internal) settings table. Default false.
namestringThe same as `className`.

list_examples List examples

List all available amCharts 5 code examples, optionally filtered by category.

ParameterTypeDescription
categorystringFilter by category, e.g. 'column-bar', 'line-area', 'pie-donut', 'maps', 'flow', 'hierarchy', 'stock', 'gantt', 'gauges', 'radar-polar', 'timeline', 'funnel-pyramid', 'json-configs' (complete JSON con…
typestringThe same as `category`.

get_example Get example

Get the full code for a specific amCharts 5 example/demo, by its path or its amcharts.com demo address. Paths are listed by list_examples and printed in search results.

ParameterTypeDescription
namestringThe same as `path`, or a demo's name, e.g. 'sankey-diagram', 'stacked column'.
pathstringExample path, e.g. 'examples/flow/sankey-diagram', 'examples/pie-donut/donut-chart', 'examples/maps/drill-down-map', or a demo address such as 'https://www.amcharts.com/demos/sankey-diagram/'

list_geodata List geodata (map files)

List amCharts 5 geodata (map) files with each one's CDN path, script global name and ES module import: world maps, continents, every country map, regional packs (US states and counties, Canada, Mexico) and the US congressional-district packs, which are versioned per Congress (congressional120 = 120th Congress is the newest). Also the data/countries2 and lang/* helper files. It gives the exact file path and global name that map code needs. Where the geodata package has a dist/ folder, the answer also gives its unpkg address, for pages that may load only from npm CDNs.

ParameterTypeDescription
filterstringWords that must all match (case-insensitive) a map's path, label, group, ISO code or pack, e.g. 'germany', 'FR', 'region/canada', 'usa counties', 'congressional120', 'congressional whole country', 'co…