Quadrant
The following classes can be useful when creating pie charts:
siren
quadrant
quadrantTheme
quadrantChartConfig
Engagement
- F#
- C#
- Python
- JavaScript
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
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),
]).write();
siren.quadrant([
quadrant.title("Reach and engagement of campaigns"),
quadrant.x_axis("Low Reach", "High Reach"),
quadrant.y_axis("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),
]).write()
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),
]).write();
- Graph
- Output
quadrantChart
title Reach and engagement of campaigns
x-axis Low Reach --> High Reach
y-axis Low Engagement --> High Engagement
%% Labels start here
quadrant-1 We should expand
quadrant-2 Need to promote
quadrant-3 Re-evaluate
quadrant-4 May be improved
Campaign A: [0.30, 0.60]
Campaign B: [0.45, 0.23]
Campaign C: [0.57, 0.69]
Campaign D: [0.78, 0.34]
Campaign E: [0.40, 0.34]
Campaign F: [0.35, 0.78]