Delphi直方图组件?

发布于 2024-12-07 21:27:55 字数 866 浏览 0 评论 0原文

难道 Delphi 中没有人需要直方图吗?

谷歌给了我一堆半生不熟的代码片段。但这意味着每次你需要一辆自行车时,你就必须再发明一辆特别的自行车。

托里主要告诉我一些非常昂贵的闭源数学统计或金融软件包,作为子产品有直方图。但它们非常昂贵,而且由于您没有源代码,每次您在 IDE/RTL/VCL 上安装更新时,您可能都会被搞砸,直到供应商制作(很快?永远?)更新的软件包。鉴于该供应商仍然存在。

所以什么也没告诉我,零。

对于我发现的... Mitov.com 在 PlotLab 中提供了一些直方图。其中告诉非商业免费。唉,它又是闭源的,如果直方图——让我们承认,它非常花哨——是我唯一需要的东西——为什么要支付全部价格?

再举一个例子 http://DSpatial.sf.net 就在几年前,我在 Delphi 5 中使用过它,但即便如此,我仍然觉得作者对这个项目失去了兴趣。我做了一些增强,修复了一些错误,他合并了它们,仅此而已。该组件不是很有用并且缺乏功能,但总比没有好。现在这个项目似乎彻底死了。过去的美好时光等等。但我不希望它们回来:-)

而且 Stack Overflow 似乎对此没有任何疑问。但也许只是没有人费心去创建主题,搜索后什么也没找到?我的意思是,Delphi 是为数据库访问而创建的,直方图是可视化数据的基本方法之一,没有人会跨越它们?具有漂亮风格的东西,具有丰富的鼠标工具提示,例如 http://www.html/css/js 中的内容。 moskva.fm/stations/FM_95.2

或者这与领域太相关并且不可能有良好的抽象?

Does it happen that no one ever needs histogram in Delphi ?

Google gave me a bunch of half-baked code snippets. But it means that each time you need one - you have to invent one more ad hoc bycicle.

Torry mostly told me about some very expensive closed source Math Statistics or Financial packages, that as a subproduct have histograms. But they are very expensive and since you have no source code, each time you install update onto IDE/RTL/VCL you're probably screwed, until the vendor would make (soon ? ever?) updated packages. Given thatvendor is still does exists.

S.O. told me nothing, nil.

For what i found...
Mitov.com provides some histograms in PlotLab. which told to be free for non-commercial. Alas, it is again closed-source, and if the Histogram - quite fancy let's admit -is the onlything i need from it - why pay the whole price ?

One more example http://DSpatial.sf.net
Just few years ago i used it in Delphi 5, but even then i felt the author is loosing interest in the project. I made few enhancement, fixed some bugs, he merged them and that's all. The component was not very useful and lacked upon features, yet better than nothing. Now the project seems to be completely dead. Good old days, etc. But i do not want them back :-)

And Stack Overflow seemingly carries no single question about it. But maybe just no one bothered to create topic, after search found nothing ? I mean, Delphi was created for database access, histograms are one of basic ways to visualize data, and no one crosses them ? Something with nice style, with rich mouse tooltip like in HTML/CSS/JS on http://www.moskva.fm/stations/FM_95.2 ?

Or is this too domain-related and not ever possible to have good abstraction ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

陈年往事 2024-12-14 21:27:55

TChart 是大多数版本的 Delphi 附带的控件。 TChart 可用于制作风格直方图(条形图)。以下内容为您提供了一些有关如何使用它的想法: http://www.digitalcoding.com/tutorials/delphi/Simple-steps-to-create-Delphi-chart.htmlhttp://delphi.about.com/od/adptips2006/qt/chart_selectbar.htm。

如果您需要代码,请在 delphiforfun.org/programs/oscillscope.htm 上搜索页面。这些不是控件。示波器文章有一个带有源的直方图。该网站上的其他一些项目还有其他带有源的直方图。虽然不优雅,但有用且免费。使用它们作为模板来制作您自己的控件。

http://delphiforfun.org/programs/Math_Topics/probability_distributions.htm 处的链接显示如何使用“直方图”显示您自己的统计数据。此示例使用 TChart。

这是我在查看资源文件时发现的更多内容:
http://wiki.lazarus.freepascal.org/TACharthttp://members.home.nl/mvanwesten/en_lazarus.html , http://www.martinole.org/TAChart.html ...其中一些是 GPU 组件,据说可以与 Delphi 的某些版本一起使用。也许这是您的幸运日,因为有一些源代码。列出的第一和第三个可能对于直方图来说是合理的。您可能必须编写自己的统计算法。

TChart is a control that ships with most versions of Delphi. TChart can be used to make histograms (bar charts) in style. The following give you some ideas about how to use it: http://www.digitalcoding.com/tutorials/delphi/Simple-steps-to-create-Delphi-chart.html and http://delphi.about.com/od/adptips2006/qt/chart_selectbar.htm .

If you need something with code, google the pages at delphiforfun.org/programs/oscilloscope.htm . These are not controls. The oscilloscope article has a histogram with source. Some of the other projects at the site have other histogram graphs with source..not elegant but useful and free. Use them as a template to make your own control.

The link at http://delphiforfun.org/programs/Math_Topics/probability_distributions.htm shows how to make your own statistics displays with "histograms." This example makes use of TChart.

Here is some more stuff to try I found looking at my resource file:
http://wiki.lazarus.freepascal.org/TAChart, http://members.home.nl/mvanwesten/en_lazarus.html , http://www.martinole.org/TAChart.html ...some of these are GPU components that supposedly work with some versions of Delphi. Perhaps this is your lucky day as there is some source code. The first and third listed probably will work reasonably for histograms. You may have to write your own statistics algorithms.

走野 2024-12-14 21:27:55

在进行一些搜索时发现了这个线程。 ImageEn组件套件有一个THistogramBox组件。这不是世界上最漂亮的东西,但它是我迄今为止发现的唯一一个。
http://www.imageen.com

Found this thread while doing some searching. The ImageEn component suite has a THistogramBox component. It's the NOT prettiest thing in the world, but it's the only one I've found so far.
http://www.imageen.com

提笔书几行 2024-12-14 21:27:55

我在 gdiplus 包中发现了一个直方图示例,可从 代码中心。我不知道它是否能满足您的需求,但当我看到它时,我想起了您的问题。

HTH。

I came across a histogram example in a gdiplus package available for download from code central. I don't know if it will do what you need but when I saw it I remembered your SO question.

HTH.

很酷又爱笑 2024-12-14 21:27:55

如果您使用 firemonkey,您可以直接创建一系列串联的 T矩形。通过关闭 hittest 可以使它们不可点击。还是这太简单直接了?

If you were using firemonkey, you could just created a series of TRectangles in series. They can be made unclickable by turning hittest off. Or is that too easy and straightforward?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文