tick-label-rotation (非ローカル オプションの定義)
public tick-label-rotation:Angle =0deg
パッケージ: CURL.GUI.CHARTS

ChartLabelGroup 内の目盛りラベルに適用される回転。

注意事項

回転された目盛りラベルは通常、自動のラベル交互表示と適切にやりとりしないため、交互表示が必要以上に行われます。したがって、tick-label-rotation が 0 でない場合は、tick-label-auto-stagger?false に設定することを推奨します。交互表示されたラベルが必要な場合は、ChartLabelGroup.stagger-level を使用して交互表示を手動で制御できます。


例: tick-label-rotation の使用
{import * from CURL.GUI.CHARTS}
{import * from CHARTS-DOC,
    location = "../docstring-support/gui/charts-doc.scurl"
}

{let chart:LayeredChart =
    {LayeredChart
        width = 12cm,
        height = 8cm,
        flipped? = true,
        legend-enabled? = false,
        tick-label-auto-stagger? = false,
        bottom-axis-parent =
            {ShapeGroup tick-label-rotation = 35deg},
        {ScatterLayer
            sample-sales-records,
            "service-revenue",
            x-axis-data =
                {ChartDataSeries sample-sales-records, "period"}
        }
    }
}

{AntialiasedFrame chart}

{Table
    columns = 2,
    {text tick-label-rotation (on bottom axis only):},
    {TextField
        value = "35deg",
        width = 3cm,
        {on ValueFinished at tf:TextField do
            set chart.bottom-axis-parent.tick-label-rotation =
                {evaluate tf.value} asa Angle
        }
    },
    {text ChartLabelGroup.stagger-level (on bottom axis):},
    {TextField
        value = "0",
        {on ValueFinished at tf:TextField do
            {if-non-null axis = chart.bottom-axis then
                set axis.label-group.stagger-level =
                    {tf.value.to-int}
            }
        }
    }
}