Update MarketingAnalysis.vue

This commit is contained in:
Administrator
2026-01-20 18:35:52 +00:00
parent 6f25d4030e
commit 3cd57b49f1
@@ -1037,37 +1037,6 @@ const horizontalBarChartOptions = {
}
};
const verticalBarChartInsideOptions = {
responsive: true,
maintainAspectRatio: false,
animation: {
duration: 500,
onComplete: (animation) => drawBarValues(animation.chart)
},
plugins: {
legend: { display: false },
tooltip: {
enabled: true,
callbacks: { label: (context) => `${context.formattedValue}%` }
}
},
scales: {
y: {
display: false,
beginAtZero: true,
grid: { display: false }
},
x: {
grid: { display: false },
ticks: {
font: { size: 11, weight: '600' },
color: '#64748b'
}
}
},
layout: { padding: { top: 20, bottom: 0 } }
};
const parsePercentageData = (obj) => {
if (!obj || typeof obj !== 'object') return { labels: [], values: [] };
const labels = Object.keys(obj).map(k => k.replace(/_/g, ' ')); // Убираем _ из ключей