Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// Document Library
barChartColors["document.details"] = blue;
barChartColors["document.download"] = darkBlue;
barChartColors["document.create"] = green;
barChartColors["document.file-added"] = darkGreen;
barChartColors["document.file-deleted"] = red;
barChartColors["document.file-updated"] = darkOrange;
barChartColors["document.inline-edit"] = lightOrange;
barChartColors["document.update"] = orange;
// Wiki
barChartColors["wiki.page"] = blue;
barChartColors["wiki.create-post"] = darkGreen;
barChartColors["wiki.delete-post"] = red;
barChartColors["wiki.update-post"] = orange;
// Discussions
barChartColors["discussions.topicview"] = blue;
barChartColors["discussions.discussions-create"] = darkGreen;
barChartColors["discussions.discussions-deleted"] = red;
barChartColors["discussions.discussions-update"] = orange;
barChartColors["volumetry"] = blue;
barChartColors["users"] = blue;
barChartColors["most-popular"] = red;
barChartColors["less-popular"] = blue;
// Grids
gridColors["x-axis"] = gray;
gridColors["y-axis"] = gray;
// Document Library
this.options.barChartColors["document.details"] = blue;
this.options.barChartColors["document.download"] = darkBlue;
this.options.barChartColors["document.create"] = green;
this.options.barChartColors["document.file-added"] = darkGreen;
this.options.barChartColors["document.file-deleted"] = red;
this.options.barChartColors["document.file-updated"] = darkOrange;
this.options.barChartColors["document.inline-edit"] = lightOrange;
this.options.barChartColors["document.update"] = orange;
// Wiki
this.options.barChartColors["wiki.page"] = blue;
this.options.barChartColors["wiki.create-post"] = darkGreen;
this.options.barChartColors["wiki.delete-post"] = red;
this.options.barChartColors["wiki.update-post"] = orange;
// Discussions
this.options.barChartColors["discussions.topicview"] = blue;
this.options.barChartColors["discussions.discussions-create"] = darkGreen;
this.options.barChartColors["discussions.discussions-deleted"] = red;
this.options.barChartColors["discussions.discussions-update"] = orange;
// Charts
this.options.barChartColors["volumetry"] = blue;
this.options.barChartColors["users"] = blue;
this.options.barChartColors["most-popular"] = red;
this.options.barChartColors["less-popular"] = blue;
return this;
};