Radial Axes

    A radial axis is composed of visual components that can be individually configured. These components are:

    The grid lines for an axis are drawn on the chart area. They stretch out from the center towards the edge of the canvas. In the example below, they are red.

    1. const data = {
    2. labels: labels,
    3. datasets: [{
    4. label: 'My First dataset',
    5. backgroundColor: 'rgba(54, 162, 235, 0.5)',
    6. borderColor: 'rgb(54, 162, 235)',
    7. data: [10, 20, 30, 40, 50, 0, 5],
    8. }]
    9. };

    The grid lines for an axis are drawn on the chart area. In the example below, they are red.

    Radial Axes - 图2

    config setup

    1. const labels = Utils.months({count: 7});
    2. const data = {
    3. labels: labels,
    4. label: 'My First dataset',
    5. backgroundColor: 'rgba(54, 162, 235, 0.5)',
    6. borderColor: 'rgb(54, 162, 235)',
    7. borderWidth: 1,
    8. data: [10, 20, 30, 40, 50, 0, 5],
    9. }]
    10. };

    config setup

    1. const labels = Utils.months({count: 7});
    2. const data = {
    3. labels: labels,
    4. label: 'My First dataset',
    5. backgroundColor: 'rgba(54, 162, 235, 0.5)',
    6. borderWidth: 1,
    7. data: [10, 20, 30, 40, 50, 0, 5],
    8. }]
    9. };

    The ticks are used to label values based on how far they are from the center of the axis. In the example below, they are red.

    config setup

    1. const labels = Utils.months({count: 7});
    2. const data = {
    3. labels: labels,
    4. datasets: [{
    5. label: 'My First dataset',
    6. backgroundColor: 'rgba(54, 162, 235, 0.5)',
    7. borderColor: 'rgb(54, 162, 235)',
    8. borderWidth: 1,
    9. data: [10, 20, 30, 40, 50, 0, 5],