I need a control to add data trending to my application. Is 开发者_运维百科anything available or do I need to use a graphing control and add my own trending features?
Trending is typically an included feature in 3rd party charting components (at least the ones i've seen) but it might be called something else such as linear regression or possiblly something like "least squares*." You should definitely not need to roll your own, unless you think it would be fun. ;-)
Google-ing for "Delphi Chart Regression" will turn up some interesting links.
(* Least squares is typically the method used to establish a trend line from a data set.)
In your shoes, I'd use the stats and charting tools from http://www.lohninger.com/delfcomp.html. It may be a bit more low-level than you want, but I've been very happy with this guys tools (which are reasonably priced, IMO, and, as I recall, can be downloaded for free on a trial basis...)
Check out the curvefit example (comes with an exe demo so no compiling or installing is necessary) here: http://www.lohninger.com/examples_part1.html It'll show you the kinds of charting as well as curve fitting. It's very instructive.
Try JvChart from the JEDI JVCL. If you don't like it, let me know, because I wrote most of it, and I always like to know what people think. It can do static and scrolling displays, and it is very easy to add a few lines and plot some data. A demo app is included in the JVCL\examples\JvChart folder.
There is also TJvSimScope, which is like an oscilloscope and is optimal for fast-scrolling charts showing data which changes on a per-second basis.
JVCL is open source and free
Look for TChart component on your component palette. If your Delphi version has it, then look for demo that uses it.
精彩评论