显示自定义标签

编程入门 行业动态 更新时间:2024-10-12 01:24:38
本文介绍了显示自定义标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

大家好, 我正在使用非常小的图表,即图表区域的宽度和高度分别为100像素和25像素. 在这种情况下,我正在使用单个系列.但是,我想在其中显示自定义标签.那我该怎么做呢? -up. 我不确定您要使用的是什么(WinForms,ASP.NET,Silverlight等),但是在100x25的分辨率下(已绘制一系列图表),您没有足够的文本空间. 如果您自己生成文本并希望将其显示在图像上,则需要使用Graphics对象(使用DrawString方法)在文本上进行绘制. 干杯.

要获得一个美观,可样式化的工具提示,您可以生成服务器端并显示在客户端上,您需要编写一些脚本.您还需要生成图像映射. 在此处查看示例[a] [ ^ ].您可以查看页面源以查看其创建方式.这是一个jQuery插件,因此您需要从上面的演示中获取jQuery和bassistance插件. 干杯.

Hi all, I am using very tiny chart i.e. the width and hight of chart area is 100 px and 25 px . In that i am using the single series.But I want to show custome labels in that.So how can i do it?????

解决方案

Use a pop-up. I''m not sure what you''re working in (WinForms, ASP.NET, Silverlight, etc) but at 100x25, with a series already charted, you''ll not have much room for text. If you''re generating the text yourself and do wish to have it on the image, you''ll need to paint it on yourself using the Graphics object (using the DrawString method). Cheers.

For a good looking, stylable tooltip that you can generate server-side and display on the client you''ll need to write a bit of script. You''ll also need to generate the image map. Have a look at the sample here[^] at the bottom of the page. You can view the page source to see how it was created. This is a jQuery plugin, so you''ll need to grab jQuery and the bassistance plugin from the above demo. Cheers.

更多推荐

显示自定义标签

本文发布于:2023-11-27 20:02:15,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1639408.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:自定义   标签

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!