Commit fda5ae0a authored by s7_spruge_k's avatar s7_spruge_k
Browse files

neiet scripts

parent bdc8e938
......@@ -15,19 +15,30 @@
<script type="text/javascript">
var allEvents = JSON.parse(document.getElementById("events").value)
window.onload = function () {
var dataFromEvents = {label: "apple", y: 3};
// for (i = 0; i < allEvents.length; i++) {
// dataFromEvents: { label: allEvents[i].name, y: allEvents[i].eventCount }
// }
console.log(dataFromEvents);
var chart = new CanvasJS.Chart("chartContainer", {
title:{
text: "Month of June"
text: "Event count in your calendars"
},
data: [
{
// Change type to "doughnut", "line", "splineArea", etc.
type: "column",
// dataPoints: dataFromEvents;
dataPoints: [
{ label: "apple", y: 3 },
{ label: "orange", y: 15 },
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment