【问题标题】:TeeChart change distance between axis title and axis DELPHI XE3TeeChart改变轴标题和轴DELPHI XE3之间的距离
【发布时间】:2016-05-19 12:36:03
【问题描述】:

我有图表,底部轴显示日期。我将日期字符串分成两行。第一个是日期,第二个是时间。我现在的问题是,标签和轴标题重叠 -> 参见图片:

我搜索了一段时间,但没有找到可用于设置轴标题和轴之间距离的解决方案或选项。该物业 TChart.MarginBottom 仅更改绘图区域和组件边框之间的边距。我尝试了不同的属性来设置标题的垂直位置:

// chtData is of type TChart
chtData.BottomAxis.Title.VertTextAlign := TVertTextAlign.vtaBottom; // Did not change anything
chtData.BottomAxis.Title.Margins.Top := 20; // Did not change anything

有没有我看不到的属性?

提前感谢您的帮助!

【问题讨论】:

    标签: delphi teechart


    【解决方案1】:

    好像没有自动计算标签的高度

    西雅图TChart:

    在对象中。检查员:BottomAxis - Labels - LabelSize set value 32

    在图表编辑器中:Axis - BottomAxis - Labels - Style - Size

    输入代码:Chart.BottomAxis.LabelsSize := 2 * UsualValue

    【讨论】:

    • 谢谢!您必须更改标签的大小才能将标题向下移动。可以通过chtData.BottomAxis.LabelsSize := 2 * chtData.BottomAxis.LabelsSize动态完成。
    猜你喜欢
    • 1970-01-01
    • 2013-02-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-01-07
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多