How To Draw Polygon/Rectangle In TChart

前提是你 提交于 2019-12-11 18:31:49

问题


I just need a little push. I have a chart with a series as a tpointseries. I am having difficultly in figuring out how to draw the series as a polygon/rectangle.

When I mean polygon or rectangular, you have 4 corners (bottom_left X/Y, top_left X/Y, top_right X/Y and bottom_right XY) which create 4 lines and fill the area between those 4 corners.

Thanks in advanced.


回答1:


1) Create series of TChartShape type with rectangle style and add shape with needed coordinates

2) Draw rectangle on chart canvas in OnAfterDraw event handler



来源:https://stackoverflow.com/questions/32145683/how-to-draw-polygon-rectangle-in-tchart

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!