PHP Classes

File: public/assets/js/as/dashboard-admin.js

Recommend this page to a friend!
  Classes of Wang   Tagydes   public/assets/js/as/dashboard-admin.js   Download  
File: public/assets/js/as/dashboard-admin.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Tagydes
E-commerce Web administration panel and API
Author: By
Last change:
Date: 1 year ago
Size: 1,774 bytes
 

Contents

Class file image Download
as.dashboard = {}; as.dashboard.initChart = function () { var data = { labels: months, datasets: [ { label: trans.chartLabel, backgroundColor: "transparent", borderColor: "#179970", pointBackgroundColor: "#179970", data: users } ] }; var ctx = document.getElementById("myChart").getContext("2d"); var myLineChart = new Chart(ctx, { type: 'line', data: data, options: { scales: { xAxes: [{ gridLines: { display: false, } }], yAxes: [{ gridLines: { color: "#f6f6f6", zeroLineColor: '#f6f6f6', drawBorder: false }, ticks: { beginAtZero: true, callback: function(value) {if (value % 1 === 0) {return value;}} } }] }, responsive: true, legend: { display: false }, maintainAspectRatio: false, tooltips: { titleMarginBottom: 15, callbacks: { label: function(tooltipItem, data) { var value = tooltipItem.yLabel, suffix = trans.new + " " + (value == 1 ? trans.user : trans.users); return " " + value + " " + suffix; } } } } }) }; $(document).ready(function () { as.dashboard.initChart(); });