Description Usage Arguments Author(s) Examples
https://github.com/rendro/easy-pie-chart
1 2 3 |
id |
Unique id. |
value |
Item value |
height |
Canvas height. 220 px by default. |
width |
Canvas width. 220 px by default. |
barColor |
Default: #ef1e25. The color of the curcular bar. You can either pass a valid css color string, or a function that takes the current percentage as a value and returns a valid css color string. |
trackColor |
Default: #f2f2f2. The color of the track, or false to disable rendering. |
scaleColor |
Default: #dfe0e0. The color of the scale lines, false to disable rendering. |
scaleLength |
Default: 5. Length of the scale lines (reduces the radius of the chart). |
lineCap |
Default: 'round'. Defines how the ending of the bar line looks like. Possible values are: butt, round and square. |
lineWidth |
Default: 3. Width of the chart line in px. |
rotate |
Default: 0. Rotation of the complete chart in degrees. |
David Granjon, dgranjon@ymail.com
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | if (interactive()) {
library(shiny)
library(gentelellaShiny)
shinyApp(
ui = gentelellaPageCustom(
gentelellaBody(
box(
title = "pieChart",
"If you've decided to go in development mode and
tweak all of this a bit, there are few things
you should do.",
pieChart(id = "chart1", value = 10),
pieChart(
id = "chart2",
value = 20,
barColor = "#0000FF",
trackColor = "#FFA500",
scaleColor = "#dfe0e0",
scaleLength = 10,
lineCap = "square",
lineWidth = 6,
rotate = 180
)
)
)
),
server = function(input, output, session) {}
)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.