Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
514 views
in Technique[技术] by (71.8m points)

delphi - How to change the axis values to correctly display even when zoomed in?

I wanted to ask how to increase the values of the axis to display data correctly? I tried searching the teechart options but with no luck.

enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

In this case, you should either

  1. use one more digit in the number format (0.0000) on the left axis, or
  2. increase the distance between the labels on the left axis.

In a comment to the question, the OP confirmed that the number format should be changed.

To do this at runtime, you can do

MyChart.Axes.Left.AxisValuesFormat := '0.0000';

It is also possible to do this at design-time.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...