File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -212,7 +212,7 @@ const chartConfig = computed(() => {
212212 backgroundColor: ' transparent' ,
213213 customFormat : (params : TooltipParams ) => {
214214 const { datapoint, absoluteIndex, bars } = params
215- if (! datapoint ) return ' '
215+ if (! datapoint || pending . value ) return ' '
216216
217217 // Use absoluteIndex to get the correct version from chartDataset
218218 const index = Number (absoluteIndex )
@@ -496,11 +496,12 @@ const endDate = computed(() => {
496496 />
497497 </template >
498498
499- <!-- Subtle gradient applied for area charts -->
500- <template #area-gradient =" { series: chartModalSeries , id: gradientId } " >
501- <linearGradient :id =" gradientId" x1 =" 0" x2 =" 0" y1 =" 0" y2 =" 1" >
502- <stop offset =" 0%" :stop-color =" chartModalSeries.color" stop-opacity =" 0.2" />
503- <stop offset =" 100%" :stop-color =" colors.bg" stop-opacity =" 0" />
499+ <!-- Custom bar gradient based on the series color -->
500+ <template #bar-gradient =" { series , positiveId } " >
501+ <linearGradient :id =" positiveId" x1 =" 0" x2 =" 0" y1 =" 0" y2 =" 1" >
502+ <!-- vue-data-ui exposes hex-normalized colors -->
503+ <stop offset =" 0%" :stop-color =" lightenHex(series.color, 0.618)" />
504+ <stop offset =" 100%" :stop-color =" series.color" stop-opacity =" 0.618" />
504505 </linearGradient >
505506 </template >
506507
You can’t perform that action at this time.
0 commit comments