MCPcopy
hub / github.com/chartjs/Chart.js / RadialLinearScale

Class RadialLinearScale

src/scales/scale.radialLinear.js:338–684  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336}
337
338export default class RadialLinearScale extends LinearScaleBase {
339
340 static id = 'radialLinear';
341
342 /**
343 * @type {any}
344 */
345 static defaults = {
346 display: true,
347
348 // Boolean - Whether to animate scaling the chart from the centre
349 animate: true,
350 position: 'chartArea',
351
352 angleLines: {
353 display: true,
354 lineWidth: 1,
355 borderDash: [],
356 borderDashOffset: 0.0
357 },
358
359 grid: {
360 circular: false
361 },
362
363 startAngle: 0,
364
365 // label settings
366 ticks: {
367 // Boolean - Show a backdrop to the scale label
368 showLabelBackdrop: true,
369
370 callback: Ticks.formatters.numeric
371 },
372
373 pointLabels: {
374 backdropColor: undefined,
375
376 // Number - The backdrop padding above & below the label in pixels
377 backdropPadding: 2,
378
379 // Boolean - if true, show point labels
380 display: true,
381
382 // Number - Point label font size in pixels
383 font: {
384 size: 10
385 },
386
387 // Function - Used to convert point labels
388 callback(label) {
389 return label;
390 },
391
392 // Number - Additionl padding between scale and pointLabel
393 padding: 5,
394
395 // Boolean - if true, center point labels to slices in polar chart

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected