.circleci
assets
css
fonts
img
js
gateways
lib
addons.js
addons.min.js
admin-notices.js
admin-notices.min.js
admin-screen.js
admin-screen.min.js
admin.js
admin.min.js
app.js
app.min.js
checkout-form-editor-modal.js
checkout-form-editor-modal.min.js
checkout-forms-editor.js
checkout-forms-editor.min.js
checkout.js
checkout.min.js
cookie-helpers.js
cookie-helpers.min.js
customizer.js
customizer.min.js
dashboard-statistics.js
dashboard-statistics.min.js
edit-placeholders.js
edit-placeholders.min.js
email-edit-page.js
email-edit-page.min.js
event-view-page.js
event-view-page.min.js
fields.js
fields.min.js
functions.js
functions.min.js
gutenberg-support.js
gutenberg-support.min.js
jumper.js
jumper.min.js
legacy-signup.js
legacy-signup.min.js
list-tables.js
list-tables.min.js
screenshot-scraper.js
screenshot-scraper.min.js
selectizer.js
selectizer.min.js
setup-wizard-polyfill.js
setup-wizard-polyfill.min.js
setup-wizard.js
setup-wizard.min.js
site-maintenance.js
site-maintenance.min.js
sso.js
sso.min.js
support.js
support.min.js
tax-rates.js
tax-rates.min.js
tax-statistics.js
tax-statistics.min.js
template-previewer.js
template-previewer.min.js
template-switching.js
template-switching.min.js
thank-you.js
thank-you.min.js
tours.js
tours.min.js
url-preview.js
url-preview.min.js
view-logs.js
view-logs.min.js
visits-counter.js
visits-counter.min.js
vue-apps.js
vue-apps.min.js
webhook-list-page.js
webhook-list-page.min.js
webhook-page.js
webhook-page.min.js
wubox.js
wubox.min.js
bin
data
inc
lang
patches
tests
utils
views
.gitignore
.phpcs.xml.dist
LICENSE
autoload.php
composer.json
composer.lock
constants.php
loco.xml
phpstan.neon.dist
phpunit.xml.dist
readme.txt
rector.php
sunrise.php
uninstall.php
wp-multisite-waas.php
137 lines
4.1 KiB
JavaScript
137 lines
4.1 KiB
JavaScript
/* eslint-disable */
|
|
(function() {
|
|
|
|
let graph = document.getElementById('wp-ultimo-taxes');
|
|
|
|
if (!graph) {
|
|
|
|
return;
|
|
|
|
} // end if;
|
|
|
|
const tax_graph = new Vue({
|
|
el: '#wp-ultimo-taxes',
|
|
components: {
|
|
apexchart: window.VueApexCharts,
|
|
},
|
|
data: {
|
|
chart_options: {
|
|
mrr_growth: {
|
|
series: [
|
|
{
|
|
name: wu_tax_statistics_vars.i18n.net_profit_label,
|
|
data: [
|
|
wu_tax_statistics_vars.data.january.net_profit,
|
|
wu_tax_statistics_vars.data.february.net_profit,
|
|
wu_tax_statistics_vars.data.march.net_profit,
|
|
wu_tax_statistics_vars.data.april.net_profit,
|
|
wu_tax_statistics_vars.data.may.net_profit,
|
|
wu_tax_statistics_vars.data.june.net_profit,
|
|
wu_tax_statistics_vars.data.july.net_profit,
|
|
wu_tax_statistics_vars.data.august.net_profit,
|
|
wu_tax_statistics_vars.data.september.net_profit,
|
|
wu_tax_statistics_vars.data.october.net_profit,
|
|
wu_tax_statistics_vars.data.november.net_profit,
|
|
wu_tax_statistics_vars.data.december.net_profit
|
|
]
|
|
},
|
|
{
|
|
name: wu_tax_statistics_vars.i18n.taxes_label,
|
|
data: [
|
|
wu_tax_statistics_vars.data.january.tax_total,
|
|
wu_tax_statistics_vars.data.february.tax_total,
|
|
wu_tax_statistics_vars.data.march.tax_total,
|
|
wu_tax_statistics_vars.data.april.tax_total,
|
|
wu_tax_statistics_vars.data.may.tax_total,
|
|
wu_tax_statistics_vars.data.june.tax_total,
|
|
wu_tax_statistics_vars.data.july.tax_total,
|
|
wu_tax_statistics_vars.data.august.tax_total,
|
|
wu_tax_statistics_vars.data.september.tax_total,
|
|
wu_tax_statistics_vars.data.october.tax_total,
|
|
wu_tax_statistics_vars.data.november.tax_total,
|
|
wu_tax_statistics_vars.data.december.tax_total
|
|
]
|
|
},
|
|
],
|
|
chartOptions: {
|
|
chart: {
|
|
type: 'bar',
|
|
height: 300,
|
|
stacked: true,
|
|
toolbar: {
|
|
show: false
|
|
},
|
|
zoom: {
|
|
enabled: true
|
|
}
|
|
},
|
|
dataLabels: {
|
|
enabled: false,
|
|
maxItems: 0,
|
|
},
|
|
responsive: [{
|
|
breakpoint: 480,
|
|
options: {
|
|
legend: {
|
|
position: 'bottom',
|
|
offsetX: -10,
|
|
offsetY: 0
|
|
}
|
|
}
|
|
}],
|
|
colors: ['#2c3e50', '#95a5a6'],
|
|
plotOptions: {
|
|
bar: {
|
|
horizontal: false,
|
|
columnWidth: '40%',
|
|
endingShape: 'rounded',
|
|
startingShape: 'rounded',
|
|
},
|
|
},
|
|
xaxis: {
|
|
categories: wu_tax_statistics_vars.month_list,
|
|
position: 'bottom',
|
|
axisBorder: {
|
|
show: true
|
|
},
|
|
axisTicks: {
|
|
show: true
|
|
},
|
|
crosshairs: {
|
|
fill: {
|
|
type: 'gradient',
|
|
gradient: {
|
|
colorFrom: '#D8E3F0',
|
|
colorTo: '#BED1E6',
|
|
stops: [0, 100],
|
|
opacityFrom: 0.4,
|
|
opacityTo: 0.5,
|
|
}
|
|
}
|
|
},
|
|
tooltip: {
|
|
enabled: true,
|
|
}
|
|
},
|
|
yaxis: {
|
|
labels: {
|
|
formatter: function (y) {
|
|
return y >= 0 ? wu_format_money(y) : '-' + wu_format_money(y);
|
|
}
|
|
}
|
|
},
|
|
legend: {
|
|
position: 'top',
|
|
offsetY: 0
|
|
},
|
|
fill: {
|
|
opacity: 1
|
|
}
|
|
},
|
|
},
|
|
},
|
|
},
|
|
});
|
|
}());
|
|
|