@@ -3098,16 +3098,21 @@ defineExpose({
30983098 <!-- DEFS BARS -->
30993099 < template v- for = " (serie, i) in barSet" : key= " `def_rect_${i}`" >
31003100 < defs : data- cy= " `xy-def-bar-${i}`" >
3101- < linearGradient : id= " `rectGradient_pos_${i}_${uniqueId}`" x2= " 0%" y2= " 100%" >
3102- < stop offset= " 0%" : stop- color= " serie.color" / >
3103- < stop offset= " 62%" : stop- color= " `${shiftHue(serie.color, 0.02)}`" / >
3104- < stop offset= " 100%" : stop- color= " `${shiftHue(serie.color, 0.05)}`" / >
3105- < / linearGradient>
3106- < linearGradient : id= " `rectGradient_neg_${i}_${uniqueId}`" x2= " 0%" y2= " 100%" >
3107- < stop offset= " 0%" : stop- color= " `${shiftHue(serie.color, 0.05)}`" / >
3108- < stop offset= " 38%" : stop- color= " `${shiftHue(serie.color, 0.02)}`" / >
3109- < stop offset= " 100%" : stop- color= " serie.color" / >
3110- < / linearGradient>
3101+ < template v- if = " $slots['bar-gradient']" >
3102+ < slot name= " bar-gradient" v- bind= " { series: serie, positiveId: `rectGradient_pos_${i}_${uniqueId}`, negativeId: `rectGradient_neg_${i}_${uniqueId}` }" / >
3103+ < / template>
3104+ < template v- else >
3105+ < linearGradient : id= " `rectGradient_pos_${i}_${uniqueId}`" x2= " 0%" y2= " 100%" >
3106+ < stop offset= " 0%" : stop- color= " serie.color" / >
3107+ < stop offset= " 62%" : stop- color= " `${shiftHue(serie.color, 0.02)}`" / >
3108+ < stop offset= " 100%" : stop- color= " `${shiftHue(serie.color, 0.05)}`" / >
3109+ < / linearGradient>
3110+ < linearGradient : id= " `rectGradient_neg_${i}_${uniqueId}`" x2= " 0%" y2= " 100%" >
3111+ < stop offset= " 0%" : stop- color= " `${shiftHue(serie.color, 0.05)}`" / >
3112+ < stop offset= " 38%" : stop- color= " `${shiftHue(serie.color, 0.02)}`" / >
3113+ < stop offset= " 100%" : stop- color= " serie.color" / >
3114+ < / linearGradient>
3115+ < / template>
31113116 < / defs>
31123117 < / template>
31133118
@@ -3130,7 +3135,8 @@ defineExpose({
31303135 < stop offset= " 0%" : stop- color= " `${shiftHue(serie.color, 0.05)}`" / >
31313136 < stop offset= " 100%" : stop- color= " serie.color" / >
31323137 < / radialGradient>
3133- < linearGradient : id= " `areaGradient_${i}_${uniqueId}`" x1= " 0%" x2= " 100%" y1= " 0%" y2= " 0%" >
3138+ < slot v- if = " $slots['area-gradient']" name= " area-gradient" v- bind= " { series: serie, id: `areaGradient_${i}_${uniqueId}` }" / >
3139+ < linearGradient v- else : id= " `areaGradient_${i}_${uniqueId}`" x1= " 0%" x2= " 100%" y1= " 0%" y2= " 0%" >
31343140 < stop offset= " 0%"
31353141 : stop- color= " `${setOpacity(shiftHue(serie.color, 0.03), FINAL_CONFIG.line.area.opacity)}`" / >
31363142 < stop offset= " 100%"
0 commit comments