简体   繁体   中英

Showing labels and length the of curves in ZedGraph (not just by tooltip)

I have to show the name and length of the curves not just by hovering in a ZedGraph. I saw a solution here to show the label and the points of a curve but I do not know how to make it show without hovering.

My program is to compute first the MST of the graphs and remove the long legs. And I want to show to the user the step by step process. I have finished the code but I want it to be more user-friendly so that he/she will not hover to the points anymore just to show the length, the points and the label of the curve.

Here is an example of how to attach text labels to each point:

http://zedgraph.dariowiz.com/index9769.html?title=Point_Label_Demo

Depending on how you implement it it can be convenient to set the Tag property of each PairPoint and then just print that Tag like in the example.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM