contex
contex copied to clipboard
Radar charts
Radar charts
A simple example would be a chart showing "sales by quarter":
data = [
{65, 50, 75, 90}
]
output =
data
|> Dataset.new(["Q1", "Q2", "Q3", "Q4"])
|> Contex.Plot.new(Contex.RadarChart, 600, 400)
|> Contex.Plot.to_svg()
Would generate something akin to:
Prior art / examples
- Chart.js
- JSCharting shows many examples
- Plotly Python, JavaScript
Additional Prior Art:
https://github.com/alangrafu/radar-chart-d3 https://gist.github.com/nbremer/21746a9668ffdf6d8242 https://www.visualcinnamon.com/2015/10/different-look-d3-radar-chart/ https://gist.github.com/nbremer/21746a9668ffdf6d8242#file-radarchart-js