Reputation: 1
Hopefully, this is not a very difficult problem. Here's where the problem lies:
<script type="text/javascript">
var cal = new CalHeatMap();
cal.init({
itemSelector: "#subDomainTextFormat-b",
start: new Date(2017, 3), // April, 1st 2017
data: "http://localhost/2017OS.json",
domain: "month",
subDomain: "x_day",
cellSize: 20,
range: 6,
displayLegend: false,
subDomainTextFormat: function(date ,value) {
return value;
}
});
</script>
The json is properly formatted and the dates in the initial display of the calendar are correct. I am not seeing the values displayed when I apply the above code. For reference, the json looks like this:
{
"1491004800":40,
"1491091200":56,
"1491177600":52,
"1491264000":53,
"1491350400":58,
"1491436800":48,
"1491523200":44,
"1491609600":57,
"1491696000":62,
"1491782400":68,
"1491868800":73,
"1491955200":61
}
Any help would be greatly appreciated :-)
Upvotes: 0
Views: 330
Reputation: 16
Download the latest version of Cal-Heatmap in your application from https://github.com/wa0x6e/cal-heatmap/archive/master.zip i think u use 3.3.10 version , u shoud use v3.6.2 version.
Upvotes: 0