You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2022/10/26 20:27:28 UTC

[GitHub] [echarts] arkim822 commented on issue #17838: [Support] Plotting Pie charts or semi-circles on scatterplot

arkim822 commented on issue #17838:
URL: https://github.com/apache/echarts/issues/17838#issuecomment-1292615843

   I've figured out  a workaround for now and it a bit hacky.
   path = 'path://M0,20 a1,1 0 0,0 80,0'
   option = {
   	xAxis: {
   		data: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']
   	},
   	yAxis: {},
   	tooltip:{},
   	series: [
   		{
   		type: 'scatter',
   		data: [220, 182, 191, 234, 290, 330, 310],
   		symbolSize: 20,
   		symbol: path,
   		symbolKeepAspect: true,
   		symbolRotate:45,
   		symbolOffset: [4, 4],
   		color: 'orange'
   		},
   		{
   		type: 'scatter',
   		data: [220, 182, 191, 234, 290, 330, 310],
   		symbolSize: 20,
   		symbol: path,
   		symbolKeepAspect: true,
   		symbolOffset: [-4, -4],
   		symbolRotate: 225,
   		color: 'blue'
   		}
   	]
   Hope this comes in handy for someone else.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org