View source: R/utils_amOptions.R
amOptions | R Documentation |
amOptions sets the most common options for chart customization. You can set other properties with the method setProperties. See details for exception.
amOptions( chart, theme = c("none", "light", "dark", "patterns", "chalk"), legend = FALSE, legendPosition = "right", legendAlign = "left", export = FALSE, exportFormat = character(), creditsPosition = "top-left", main = character(), mainColor = "#000000", mainSize = 15, zoom = FALSE, scrollbar = FALSE, scrollbarHeight = 20, valuescrollbar = FALSE, valuescrollbarHeight = 20, labelRotation = 0, ... )
chart |
AmChart. |
theme |
|
legend |
|
legendPosition |
|
legendAlign |
|
export |
|
exportFormat |
|
creditsPosition |
|
main |
|
mainColor |
|
mainSize |
|
zoom |
|
scrollbar |
|
scrollbarHeight |
|
valuescrollbar |
|
valuescrollbarHeight |
|
labelRotation |
|
... |
Other properties added to the chart using |
Exception:
It's not possible to export a gauge chart data as CSV.
See online documentation https://datastorm-open.github.io/introduction_ramcharts/ and amChartsAPI
amOptions, amBarplot, amBoxplot, amHist, amPie, amPlot, amTimeSeries, amStockMultiSet, amBullet, amRadar, amWind, amFunnel, amAngularGauge, amSolidGauge, amMekko, amCandlestick, amFloatingBar, amOHLC, amWaterfall
## Not run: library(pipeR) data(data_pie) # Export amPie(data = data_pie) %>>% amOptions(export = TRUE) # Legend amPie(data = data_pie) %>>% amOptions(legend = TRUE) # Legend position amPie(data = data_pie) %>>% amOptions(legend = TRUE, legendPosition = "bottom") # Credits position amPie(data = data_pie) %>>% amOptions(creditsPosition = "bottom-right") # Theme amPie(data = data_pie) %>>% amOptions(theme = "chalk") # Title amPie(data = data_pie) %>>% amOptions(main = "Social network", mainColor = "#FFFFFF", mainSize = 40, theme = "chalk") # Custom exemple amPie(data = data_pie) %>>% amOptions(main = "Social network", mainColor = "#FFFFFF", mainSize = 40, theme = "dark", legend = TRUE, legendPosition = "bottom", creditsPosition = "bottom-right" ) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.