Skip to content

Instantly share code, notes, and snippets.

@lackneets
Last active January 15, 2020 13:09
Show Gist options
  • Save lackneets/5a8feefa8a8e50a102022b6f442fa9ba to your computer and use it in GitHub Desktop.
Save lackneets/5a8feefa8a8e50a102022b6f442fa9ba to your computer and use it in GitHub Desktop.
ChartJS Radar Chart Example
var ctx = document.getElementById('radar-chart').getContext('2d');
var data = {
labels : ["January","February","March","April","May"],
datasets : [
{
fillColor : "rgba(220,220,220,0.5)",
strokeColor : "rgba(220,220,220,1)",
data : [65,59,90,81,56]
},
{
fillColor : "rgba(151,187,205,0.5)",
strokeColor : "rgba(151,187,205,1)",
data : [28,48,40,19,96]
}
]
}
var myRadarChart = new Chart(ctx).Radar(data, {responsive: true});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment