MCPcopy Create free account
hub / github.com/chartjs/Chart.js / createArc

Function createArc

test/specs/element.arc.tests.js:308–327  ·  view source on GitHub ↗
(spacingMode)

Source from the content-addressed store, hash-verified

306
307 it('should use angular spacing mode independently from proportional mode', function() {
308 function createArc(spacingMode) {
309 return new Chart.elements.ArcElement({
310 startAngle: 0,
311 endAngle: Math.PI / 2,
312 x: 0,
313 y: 0,
314 innerRadius: 0,
315 outerRadius: 100,
316 options: {
317 circular: true,
318 spacingMode: spacingMode,
319 spacing: 20,
320 offset: 0,
321 borderWidth: 0,
322 borderRadius: 0,
323 backgroundColor: 'red',
324 borderColor: 'black'
325 }
326 });
327 }
328
329 function firstOuterArcStartAngle(arc) {
330 var ctx = window.createMockContext();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected