Fix Calculation
This commit is contained in:
parent
00ac91903f
commit
80cecabfb0
@ -427,3 +427,4 @@ $_L['Buy_this_your_active_package_will_be_overwrite'] = 'Buy this? your active p
|
||||
$_L['Monthly_Registered_Customers'] = 'Monthly Registered Customers';
|
||||
$_L['Total_Monthly_Sales'] = 'Total Monthly Sales';
|
||||
$_L['Active_Users'] = 'Active Users';
|
||||
$_L['All_Users_Insights'] = 'All Users Insights';
|
||||
|
@ -309,14 +309,14 @@
|
||||
var c_all = '{/literal}{$c_all}{literal}';
|
||||
var u_all = '{/literal}{$u_all}{literal}';
|
||||
//lets calculate the inactive users as reported
|
||||
var inactive = u_all - u_act;
|
||||
|
||||
var expired = u_all - u_act;
|
||||
var inactive = c_all - u_all;
|
||||
// Create the chart data
|
||||
var data = {
|
||||
labels: ['Active Users', 'Inactive Users', 'Total Users'],
|
||||
labels: ['Active Users', 'Expired Users', 'Inactive Users'],
|
||||
datasets: [{
|
||||
label: 'User Recharges',
|
||||
data: [parseInt(u_act), parseInt(inactive), parseInt(c_all)],
|
||||
data: [parseInt(u_act), parseInt(expired), parseInt(inactive)],
|
||||
backgroundColor: ['rgba(4, 191, 13)', 'rgba(191, 35, 4)', 'rgba(0, 0, 255, 0.5'],
|
||||
borderColor: ['rgba(0, 255, 0, 1)', 'rgba(255, 99, 132, 1)', 'rgba(0, 0, 255, 0.7'],
|
||||
borderWidth: 1
|
||||
|
@ -1,3 +1,3 @@
|
||||
{
|
||||
"version": "2024.2.5"
|
||||
"version": "2024.2.5.1"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user