namespace anychart Improve this Doc
Core space for all anychart components.
Constants Overview
DEVELOP | Defines if it is developer edition. |
VERSION | Current version of the framework. |
Functions Overview
area() | Creates and returns an Area Chart. |
area3d() | Creates and returns an Area 3D Chart. |
bar() | Creates and returns a Bar Chart. |
bar3d() | Creates and returns a Bar 3D Chart. |
box() | Creates and returns a Box Chart. |
bubble() | Creates and returns a Bubble Chart. |
bubbleMap() | Creates and returns a Bubble Map. |
bullet() | Creates and returns a Bullet Chart. |
cartesian() | Creates and returns a Cartesian chart. |
cartesian3d() | Creates and returns a Cartesian 3D chart. |
choropleth() | Creates and returns a Choropleth Map. |
circularGauge() | Creates and returns a Circular Gauge. |
column() | Creates and returns a Column Chart. |
column3d() | Creates and returns an Column 3D Chart. |
financial() | Creates and returns a Financial Chart. |
fromJson() | Creates an element by JSON config. |
fromXml() | Creates an element by XML config. |
funnel() | Creates and returns a Funnel Chart. |
ganttProject() | Creates and returns a Gantt Project Chart. |
ganttResource() | Creates and returns a Gantt Resource Chart. |
ganttToolbar() | Constructor function for gantt toolbar. |
heatMap() | Creates and returns a Heat Map. |
licenseKey() | Setter for AnyChart license key. |
line() | Creates and returns a Line Chart. |
map() | Creates and returns a Map. |
marker() | Creates and returns a Marker Chart. |
onDocumentLoad() | Add callback for the document load event. |
onDocumentReady() | Add callback for document ready event. |
pie() | Creates and returns a Pie Chart. |
pie3d() | Creates and returns a 3D Pie Chart. |
polar() | Creates and returns a Polar Chart. |
pyramid() | Creates and returns a Pyramid Chart. |
radar() | Creates and returns a Radar chart. |
scatter() | Creates and returns a Scatter Chart. |
server() | Sets an address export server script, which is used to export to an image or PDF. |
sparkline() | Creates and returns a Sparkline Chart. |
stock() | Creates and returns a Stock Chart. |
theme() | Sets the theme for anychart globally or gets current theme. |
toolbar() | Constructor function for default toolbar. |
Classes Overview
anychart.SignalEvent | Special event for changes in dirty states. |
Constants Description
Functions Description
area
Params:
Name | Type | Description |
---|---|---|
var_args | anychart.data.View | anychart.data.Set | Array | Area chart data. |
Returns:
anychart.charts.Cartesian - Chart with defaults for area series.Try it:
area3d
Params:
Name | Type | Description |
---|---|---|
var_args | anychart.data.View | anychart.data.Set | Array | Area chart data. |
Returns:
anychart.charts.Cartesian3d - Chart with defaults for area series.Try it:
bar
Params:
Name | Type | Description |
---|---|---|
var_args | anychart.data.View | anychart.data.Set | Array | Bar chart data. |
Returns:
anychart.charts.Cartesian - Chart with defaults for bar series.Try it:
bar3d
Params:
Name | Type | Description |
---|---|---|
var_args | anychart.data.View | anychart.data.Set | Array | Bar chart data. |
Returns:
anychart.charts.Cartesian3d - Chart with defaults for bar series.Try it:
box
Params:
Name | Type | Description |
---|---|---|
var_args | anychart.data.View | anychart.data.Set | Array | Box chart data. |
Returns:
anychart.charts.Cartesian - Chart with defaults for box series.Try it:
bubble
Params:
Name | Type | Description |
---|---|---|
var_args | anychart.data.View | anychart.data.Set | Array | Bubble chart data. |
Returns:
anychart.charts.Scatter - Chart with defaults for bubble series.Try it:
bubbleMap
Params:
Name | Type | Description |
---|---|---|
var_args | anychart.data.View | anychart.data.Set | Array | Data for creating a Bubble Map. |
Returns:
anychart.charts.Map - New map instance with a set of predefined settings suitable for bubble series.Try it:
bullet
Params:
Name | Type | Description |
---|---|---|
data | anychart.data.View | anychart.data.Set | Array | string | Bullet Chart data. |
Returns:
anychart.charts.Bullet - Bullet chart.Try it:
cartesian
Params:
Name | Type | Description |
---|---|---|
barChartMode | boolean | If true, sets the chart to Bar Chart mode, swapping default chart elements behaviour to horizontal-oriented (setting default layout to VERTICAL, swapping axes, etc). |
Returns:
anychart.charts.Cartesian - Empty chart.Try it:
cartesian3d
Params:
Name | Type | Description |
---|---|---|
barChartMode | boolean | If true, sets the chart to Bar Chart mode, swapping default chart elements behaviour to horizontal-oriented (setting default layout to VERTICAL, swapping axes, etc). |
Returns:
anychart.charts.Cartesian3d - Empty chart.Try it:
choropleth
Params:
Name | Type | Description |
---|---|---|
var_args | anychart.data.View | anychart.data.Set | Array | Data for creating a Choropleth Map. |
Returns:
anychart.charts.Map - New map instance with a set of predefined settings suitable for choropleth series.Try it:
circularGauge
Params:
Name | Type | Description |
---|---|---|
data | anychart.data.View | anychart.data.Set | Array | string | Value to set. |
csvSettings | Object.<string, (string|boolean)> | If CSV string is passed, you can pass CSV parser settings here as a hash map. |
Returns:
anychart.gauges.Circular - Circular gauge with defaults.Try it:
column
Params:
Name | Type | Description |
---|---|---|
var_args | anychart.data.View | anychart.data.Set | Array | Column chart data. |
Returns:
anychart.charts.Cartesian - Chart with defaults for column series.Try it:
column3d
Params:
Name | Type | Description |
---|---|---|
var_args | anychart.data.View | anychart.data.Set | Array | Column chart data. |
Returns:
anychart.charts.Cartesian3d - Chart with defaults for column series.Try it:
financial
Params:
Name | Type | Description |
---|---|---|
var_args | anychart.data.View | anychart.data.Set | Array | Finance chart data. |
Returns:
anychart.charts.Cartesian - Chart with defaults for ohlc and candlestick series.Try it:
fromJson
Params:
Name | Type | Description |
---|---|---|
jsonConfig | Object | string | Config. |
Returns:
* - Element created by config.Try it:
fromXml
Params:
Name | Type | Description |
---|---|---|
xmlConfig | string | Node | Config. |
Returns:
* - Element created by config.Try it:
funnel
Params:
Name | Type | Description |
---|---|---|
data | anychart.data.View | anychart.data.Set | Array | string | Data for the chart. |
csvSettings | Object.<string, (string|boolean)> | If CSV string is passed, you can pass CSV parser settings here as a hash map. |
Returns:
anychart.charts.Funnel -Try it:
ganttProject
Returns:
anychart.charts.Gantt - Gantt Project ChartTry it:
ganttResource
Returns:
anychart.charts.Gantt - Gantt Resource ChartTry it:
ganttToolbar
Returns:
anychart.ui.GanttToolbar -heatMap
Note: Contains predefined settings for axes and grids.
Params:
Name | Type | Description |
---|---|---|
data | anychart.data.View | anychart.data.Set | Array | string | Data for the chart. |
csvSettings | Object.<string, (string|boolean)> | If CSV string is passed, you can pass CSV parser settings here as a hash map. |
Returns:
anychart.charts.HeatMap - Heat map chart.Try it:
licenseKey
To purchase a license proceed to Buy AnyChart page.
Params:
Name | Type | Description |
---|---|---|
value | string | Your licence key. |
Returns:
string - Current licence key.Try it:
line
Params:
Name | Type | Description |
---|---|---|
var_args | anychart.data.View | anychart.data.Set | Array | Line chart data. |
Returns:
anychart.charts.Cartesian - Chart with defaults for line series.Try it:
map
marker
Params:
Name | Type | Description |
---|---|---|
var_args | anychart.data.View | anychart.data.Set | Array | Marker chart data. |
Returns:
anychart.charts.Scatter - Chart with defaults for marker series.Try it:
onDocumentLoad
It is fired when the entire page loads, including its content (images, css, scripts, etc.).
Params:
Name | Type | Description |
---|---|---|
func | function | Function which will be called on document load event. |
scope | * | Function call context. |
onDocumentReady
It is called when the DOM is ready, this can happen prior to images and other external content is loaded.
Params:
Name | Type | Description |
---|---|---|
func | function | Function which will called on document load event. |
scope | * | Function call context. |
Try it:
pie
Params:
Name | Type | Description |
---|---|---|
data | anychart.data.View | anychart.data.Set | Array | string | Data for the chart. |
Returns:
anychart.charts.Pie - Default pie chart.Try it:
pie3d
Params:
Name | Type | Description |
---|---|---|
data | anychart.data.View | anychart.data.Set | Array | string | Data for the chart. |
csvSettings | Object.<string, (string|boolean)> | If CSV string is passed, you can pass CSV parser settings here as a hash map. |
Returns:
anychart.charts.Pie - Chart with defaults for 3D Pie.Try it:
polar
Params:
Name | Type | Description |
---|---|---|
var_args | anychart.data.View | anychart.data.Set | Array | Marker chart data. |
Returns:
anychart.charts.Polar - Chart with defaults for marker series.Try it:
pyramid
Params:
Name | Type | Description |
---|---|---|
data | anychart.data.View | anychart.data.Set | Array | string | Data for the chart. |
csvSettings | Object.<string, (string|boolean)> | If CSV string is passed, you can pass CSV parser settings here as a hash map. |
Returns:
anychart.charts.Pyramid -Try it:
radar
Params:
Name | Type | Description |
---|---|---|
var_args | anychart.data.View | anychart.data.Set | Array | Line chart data. |
Returns:
anychart.charts.Radar - Chart with defaults for line series.Try it:
scatter
Params:
Name | Type | Description |
---|---|---|
var_args | anychart.data.View | anychart.data.Set | Array | Marker chart data. |
Returns:
anychart.charts.Scatter - Chart with defaults for scatter series.Try it:
server
See:
Params:
Name | Type | Description |
---|---|---|
address | string | Export server script URL. |
Try it:
sparkline
Params:
Name | Type | Description |
---|---|---|
data | anychart.data.View | anychart.data.Set | Array | string | Value to set. |
csvSettings | Object.<string, (string|boolean)> | If CSV string is passed, you can pass CSV parser settings here as a hash map. |
Returns:
anychart.charts.Sparkline - Chart with defaults for marker series.Try it:
stock
Returns:
anychart.charts.Stock - New stock chart instance.Try it:
theme
Params:
Name | Type | Default | Description |
---|---|---|---|
value | string | Object | "defaultTheme" |
Object with theme settings or name of the theme. |
toolbar
Returns:
anychart.ui.Toolbar -