Skip to main content

XYChart

The following classes can be useful when creating requirement diagrams:

  • siren
  • xyChart
  • xyChartTheme
  • xyChartConfig

Example

siren.xyChart [
xyChart.title "Sales Revenue"
xyChart.xAxis ["jan"; "feb"; "mar"; "apr"; "may"; "jun"; "jul"; "aug"; "sep"; "oct"; "nov"; "dec"]
xyChart.yAxisNamedRange ("Revenue (in $)", 4000, 11000)
xyChart.bar [5000; 6000; 7500; 8200; 9500; 10500; 11000; 10200; 9200; 8500; 7000; 6000]
xyChart.line [5000; 6000; 7500; 8200; 9500; 10500; 11000; 10200; 9200; 8500; 7000; 6000]
]
|> siren.write