Skip to main content

Quadrant

The following classes can be useful when creating pie charts:

  • siren
  • quadrant
  • quadrantTheme
  • quadrantChartConfig

Engagement

siren.quadrant [
quadrant.title "Reach and engagement of campaigns"
quadrant.xAxis ("Low Reach", "High Reach")
quadrant.yAxis ("Low Engagement", "High Engagement")
quadrant.comment "Labels start here"
quadrant.quadrant1 "We should expand"
quadrant.quadrant2 "Need to promote"
quadrant.quadrant3 "Re-evaluate"
quadrant.quadrant4 "May be improved"

quadrant.point("Campaign A", 0.3, 0.6)
quadrant.point("Campaign B", 0.45, 0.23)
quadrant.point("Campaign C", 0.57, 0.69)
quadrant.point("Campaign D", 0.78, 0.34)
quadrant.point("Campaign E", 0.40, 0.34)
quadrant.point("Campaign F", 0.35, 0.78)
]
|> siren.write