top of page

Gradient fill in Scatter chart

Gradient colors can be applied to a scatter chart using below script


Steps:

  1. Create a scatter chart

  2. Add below script to widget

  3. Save script and refresh widget



widget.on('processresult', function(se, ev){
	
	$.each(ev.result.series, function(index, value){
		value.marker.fillColor = {
			radialGradient: { cx: 0.4, cy: 0.3, r: 0.7 },
				stops: [
					[0, 'rgba(255,255,255,0.5)'],
					[1, value.color]
				]
		}
	
	})

})


Comentarios

Obtuvo 0 de 5 estrellas.
Aún no hay calificaciones

Agrega una calificación
BI Next Level white logo

BI Next Level is your trusted resource for BI customization, data solutions, and expert insights. Explore practical tips, scripts, and tutorials for tools like Sisense, Python, and SQL. Let’s transform your data into impactful insights together.

Quick Links
Connect with us
Copyright © 2024. All Rights Reserved. Designed, Developed & Maintained  by Intertoons
bottom of page