Update MarketingAnalysis.vue
This commit is contained in:
@@ -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, ' ')); // Убираем _ из ключей
|
||||
|
||||
Reference in New Issue
Block a user