Skip to main content

PieChart

The following classes can be useful when creating pie charts:

  • siren
  • pieChart
  • pieTheme
  • pieConfig

Product

siren.pieChart ([
pieChart.data("Calcium", 42.96)
pieChart.data("Potassium", 50.05)
pieChart.data("Magnesium", 10.01)
pieChart.data("Iron", 5)
], true, "Key elements in Product X")
|> siren.addGraphConfigVariable(pieConfig.textPosition 0.5)
|> siren.addThemeVariable(pieTheme.pieOuterStrokeWidth "5px")
|> siren.write