Forum Discussion

mgkirsch's avatar
mgkirsch
Cloud Apps
04-06-2023

Scatter Plot Jitter

Has anyone been able to get jitter to work on a scatter plot? - https://www.highcharts.com/demo/scatter-jitter

This doesn't work.

 

widget.on('beforeviewloaded', function(widget,element,options){
  
  var chartOptions = element.options;
	chartOptions.chart.type = 'scatter';
	
	delete chartOptions.plotOptions.bubble;
	
	chartOptions.plotOptions.scatter = 
		{    
			showInLegend: false,
			jitter: {
				x: 0.24,
				y: 0
			},
			marker: {
				radius: 2,
				symbol: 'circle'
			},
			tooltip: {
				pointFormat: 'Measurement: {point.y:.3f}'
			}
		}
	
})