feat: add peptide-news-plugin/admin/js/admin-script.js
This commit is contained in:
23
peptide-news-plugin/admin/js/admin-script.js
Normal file
23
peptide-news-plugin/admin/js/admin-script.js
Normal file
@@ -0,0 +1,23 @@
|
||||
/**
|
||||
* Admin JS for Peptide News Analytics Dashboard
|
||||
*/
|
||||
|
||||
(function() {
|
||||
const ctx = document.getElementById('peptide-analytics-chart')?.getContext('2d');
|
||||
if (!ctx) return;
|
||||
|
||||
new Chart(ctx, {
|
||||
type: 'line',
|
||||
data: {
|
||||
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'],
|
||||
datasets: [
|
||||
{
|
||||
label: 'Clicks',
|
||||
data: [12, 19, 3, 5, 2, 3],
|
||||
borderColor: 'rgb(75, 192, 192)',
|
||||
tension: 0.1
|
||||
}
|
||||
]
|
||||
}
|
||||
});
|
||||
})();
|
||||
Reference in New Issue
Block a user