StockPanel class creates stock panels (charts). AmStockChart can have multiple Stock panels.
api("StockPanel") for more information and all avalaible properties.
ValueAxis. Specifies on which value axis user can draw trend lines. Set drawingIconsEnabled to TRUE if you want icons to be visible. First value axis will be used if not set here. You can use a reference to the value axis object or id of value axis.
Each element must be have been created with stockGraph(*)
Each element must be have been created with stockLegend(*)
list of Label.
Example of label object, with all possible properties:
label(x = 20, y = 20, text = "this is label", align = "left", size = 12, color = "#CC0000",
alpha = 1, rotation = 0, bold = TRUE, url = "http=//www.amcharts.com").
api("Label") for more informations.
list of GaugeArrow. Only valid for gauge charts.
api("GaugeArrow") for more informations.
list of GaugeAxis properties.
Only valid for gauge charts.
api("GaugeAxis") for more informations.
Creates the balloons (tooltips) of the chart.
It follows the mouse cursor when you roll-over the data items.
The framework automatically generates the instances you just have to adjust
the appearance to your needs.
api("AmBalloon") for more informations.
CategoryAxis. Read-only. Chart creates category axis itself. If you want to change some properties, you should get this axis from the chart and set properties to this object.
Category field name indicates the chart the name of the field in your dataProvider object
which will be used for category axis values.
Cursor of a chart.
api("ChartCursor") for more informations.
api("ChartScrollbar") for more informations.
specifies position of the amCharts' website link.
Allowed values are: "top-left", "top-right", "bottom-left" and "bottom-right".
data.frame, containing the data.
list of AmGraph.
Creates the visualization of the data in following types: line, column, step line,
smoothed line, olhc and candlestick.
Only valid for Gantt charts.
Gant chart actually creates multiple graphs (separate for each segment).
Properties of this graph are passed to each of the created graphs
- this allows you to control the look of segments.
api("AmGraph") for more informations.
list of Guide.
Instead of adding guides to the axes, you can push all of them to this array.
In case guide has category or date defined, it automatically will be assigned to the category axis.
Otherwise to first value axis, unless you specify a different valueAxes for the guide.
api("Guide") for more informations.
api("AmLegend") for more informations.
Segments field in your data provider.
Only valid for Gantt Charts.
Only valid for Drilldown charts.
Chart's theme. Config files of themes can be found in amcharts/themes/ folder.
list of Title.
api("Title") for more informations.
list of TrendLine objects added to a chart.
You can add trend lines to a chart using this list or access already existing trend lines.
Possible types are: "serial", "pie", "radar", "xy", "radar", "funnel", "gauge", "stock".
See details about using argument type.
(type map is in development).
list of ValueAxis.
Chart creates one value axis automatically,
so if you need only one value axis, you don't need to create it.
api("ValueAxis") for more informations.
ValueAxis. Only valid for Gantt Charts. Set it's type to "date" if your data is date or time based.
list containining the listeners to add to the object.
The list must be named as in the official API. Each element must be a character string.
runShinyExamples() for examples.
containing other avalaible properties not yet implemented in the package.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.