Skip to content

[FEATURE] Custom angles for polarArea graph #4751

@MarioIannotta

Description

@MarioIannotta

Expected Behavior

Provide custom value for each angle of the polar graph.

Current Behavior

Every angle is 360/#values °

Possible Solution

Provide the custom angles in the options like this

 var options = {
 		type: 'polarArea',
 		data: {
 		labels: ["A", "B", "C", "D", "E"],
 		datasets: [{}]
 		},
 		options: {
 			customAngles: [
 				10, 40, 80, 80, 150
 			]
 		}
 	}
 	
 	var ctx = document.getElementById('chartJSContainer').getContext('2d');
 	new Chart(ctx, options);

and use it in

Chart.controllers.polarArea = Chart.DatasetController.extend({...
updateElement: function(arc, index, reset) 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions