Description Usage Arguments Examples
https://www.fusioncharts.com/dev/chart-guide/chart-configurations/canvas
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | fusionCanvas(
fusionPlot,
showCanvasBg = FALSE,
canvasbgColorFirst = "#5a5a5a",
canvasbgColorSecond = NULL,
canvasBgDepth = "0",
canvasbgAlpha = "100",
canvasBgRatioStart = "40",
canvasBgRatioEnd = "60",
canvasBgAngle = "0",
showCanvasBorder = FALSE,
canvasBorderColor = "#666666",
canvasBorderAlpha = "80",
canvasBorderThickness = "1",
showCanvasBase = FALSE,
canvasBaseDepth = "5",
canvasBaseColor = "#aaaaaa"
)
|
fusionPlot |
fusionPlot object got by |
showCanvasBg |
Show the canvas background |
canvasbgColorFirst |
Specify the hex code of the first canvas background color |
canvasbgColorSecond |
Specify the hex code of the second canvas background color |
canvasBgDepth |
Set the depth of the canvas background |
canvasbgAlpha |
Set the transparency of the background color |
canvasBgRatioStart |
Set the first value of the canvas background ratio (in percentage) |
canvasBgRatioEnd |
Set the second value of the canvas background ratio (in percentage) |
canvasBgAngle |
Specify canvas background angle (in degrees) |
showCanvasBorder |
Show the canvas border |
canvasBorderColor |
Set the border color |
canvasBorderAlpha |
Set the transparency of the border |
canvasBorderThickness |
Set the thickness of the border |
showCanvasBase |
Show the canvas base |
canvasBaseDepth |
Set the height of the canvas base |
canvasBaseColor |
Specify the hex code of the base color |
1 2 3 4 5 6 | library(fusionchartsR)
df <- data.frame(label = c("Venezuela", "Saudi", "Canada", "Russia"), value = c(290, 260,180, 115))
df %>%
fusionPlot(x = "label", y = "value", type = "column2d") %>%
fusionCanvas(showCanvasBorder = TRUE, canvasBorderThickness = "4", canvasBorderAlpha = "80") %>%
fusionTheme(theme = "fusion")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.