Jump to content
  • 0

Spacing on 3D Pie Chart


Question

1 answer to this question

Recommended Posts

  • 0

Hello @Eugene,

Since Caspio uses the Highcharts library to render Chart DataPages, I have checked the Highcharts documentation https://api.highcharts.com/highcharts/ 

I was able to find the solution that allows to add spaces between slices for the usual Pie Chart (not 3D Pie Chart).

 

You may paste this code to the Footer section on the  "Chart Wizard - Configure Chart Options" screen of your DataPage. 

Do not forget to disable the HTML editor on the Advanced tab before pasting the code.

I put the borderWidth as 3, please use the value that you need.

< script >
document.addEventListener('DataPageReady', chartUpdateHandler)

function chartUpdateHandler(event) {

	var cleaner = function (interv) {
		clearInterval(interv);
	}

	let interv = setInterval(() => {

		var chart = Highcharts.charts[0];
		if (!chart) return;
		chart.update({
			plotOptions: {
				pie: {
					borderWidth: 3
				}
			}
		});

		cleaner(interv);

	}, 200);
} 
</script>

 

Here is the result:

3N45Jds.png

 

Maybe this information is helpful for you. Unfortunately, I could not find the property that allows adding the space between slices for the 3D Pie Chart.

Regards,

 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...