|
@@ -563,11 +563,7 @@ function report_crm(reporting) {
|
|
|
var receiptCanvas = $("#reporting-chart");
|
|
|
var context = receiptCanvas.get(0).getContext("2d");
|
|
|
|
|
|
- if (window.bar != undefined) {
|
|
|
- window.bar.destroy();
|
|
|
- }
|
|
|
-
|
|
|
- window.bar = new Chart(context, {
|
|
|
+ var myChart = new Chart(context, {
|
|
|
type: 'bar',
|
|
|
data: {
|
|
|
labels: names,
|
|
@@ -581,6 +577,7 @@ function report_crm(reporting) {
|
|
|
responsive: true,
|
|
|
responsiveAnimationDuration: 10,
|
|
|
maintainAspectRatio: false,
|
|
|
+ events: ['click'],
|
|
|
scales: {
|
|
|
yAxes: [{
|
|
|
ticks: {
|