[PROMOTE] 晉升 dev 變更至 demo 環境
1. 修正 utilization.blade.php 中的自訂 Tooltip,解決圖表動態數據加載時小時標籤顯示 undefined 的 Bug。 2. 於 ApexCharts 配置中新增 accessibility.enabled = false 屬性,完全關閉圖表 SVG 的 ARIA 標籤生成,避免瀏覽器或輔助擴充套件顯示無障礙浮動提示框。
This commit is contained in:
commit
4600912051
@ -91,7 +91,10 @@
|
||||
type: 'bar',
|
||||
height: 350,
|
||||
toolbar: { show: false },
|
||||
fontFamily: 'Plus Jakarta Sans, sans-serif'
|
||||
fontFamily: 'Plus Jakarta Sans, sans-serif',
|
||||
accessibility: {
|
||||
enabled: false
|
||||
}
|
||||
},
|
||||
plotOptions: {
|
||||
bar: { borderRadius: 6, columnWidth: '60%' }
|
||||
@ -123,7 +126,7 @@
|
||||
tooltip: {
|
||||
theme: 'dark',
|
||||
custom: function ({ series, seriesIndex, dataPointIndex, w }) {
|
||||
const hour = w.globals.categoryLabels[dataPointIndex];
|
||||
const hour = labels[dataPointIndex] || '';
|
||||
const count = series[seriesIndex][dataPointIndex];
|
||||
return '<div class="px-3 py-2 bg-slate-900 text-white rounded-lg border border-slate-700 shadow-xl">' +
|
||||
'<span class="text-[10px] font-black uppercase tracking-widest block opacity-50 mb-1">' + hour + '</span>' +
|
||||
|
||||
Loading…
Reference in New Issue
Block a user