teechart

Delphi - How to create a stacked bar series during runtime?

南楼画角 提交于 2020-08-05 09:57:24
问题 I would like to create 2 series that stack upon each other using the Teechart series in Delphi during runtime. Essentially I want to have 2 series, each with 2 entries, or data points, and the corresponding data points, i.o.w series1 datapoint1 and series 2 datapoint 1, should stack upon each other to form a single bar. I have tried to look for a precedure or property to change to no avail. Thanks ahead of time! Regards, Romans 回答1: Minimal example: var S1, S2: TBarSeries; begin S1 :=

Delphi TeeChart - print preview and save dialog

丶灬走出姿态 提交于 2020-05-13 14:25:27
问题 I'm using the built in TeeChart in Delphi XE for graphs. When I just put a graph on a form, I have all these options to export/save or print preview, but those aren't there at runtime. I want to add a button for a save dialog and a print preview (right now I just have it doing Chart1.Print and Chart1.SaveToBitmapFile) I googled around and I found this link: http://www.steema.com/support/faq/NewVCL/FAQ_VCL_DIALOGS.htm So I added EditChar to Uses and added the line EditChart(Self,Chart1 ); but

Change distance between Axis Title and Axis in Android TeeChart

牧云@^-^@ 提交于 2020-01-17 03:49:10
问题 I've tried to change the distance between axis title and axis in Android TeeChart. I played a little bit around with tChart.getAxes().getLeft().getTitle().setCustomSize(); tChart.getAxes().getBottom().getTitle().setCustomSize(); tChart.getAxes().getLeft().getLabels().setCustomSize(); tChart.getAxes().getBottom().getLabels().setCustomSize(); On the left Axis it works great, but the buttom Axis Title stays in the same Position. Anyone knows a solution? Thanks. 回答1: I'm afraid there isn't an

TChart inside LinearLayout generates “width and height must be > 0”

余生颓废 提交于 2020-01-07 02:17:30
问题 I have just started using Steema TChart on Mono for Android. I tried this simple code and it works fine: protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); var tChart1 = new Steema.TeeChart.TChart(this); var bar1 = new Steema.TeeChart.Styles.Bar(); tChart1.Series.Add(bar1); bar1.Add(3, "Pears", Color.Red); bar1.Add(4, "Apples", Color.Blue); bar1.Add(2, "Oranges", Color.Green); var theme = new Steema.TeeChart.Themes.BlackIsBackTheme(tChart1.Chart); theme.Apply();

Tee chart scroller implementation

房东的猫 提交于 2020-01-06 07:59:09
问题 Hi I am trying to implement scroller from Teechart libraries. I have encountered an issue while implementing the scroller. Loading data to the scroller might have gone wrong in my case. But same data loading works well with a slider implementation. I have attached my code for data loading as well as scroller here. I can see data loading after performing fast forward or play of signal, which is a different function for data loading. However, the scroller does not move freely on the canvas. It

Optimizing TCHart drawing in Delphi 7

久未见 提交于 2020-01-03 00:01:14
问题 My previous question had some great input, but it didn't work for me because my problem seems to be Delphi 7 related. I have a chart with a single series (TFastLineSeries) and 3,600 datapoints which is taking up to 45 seconds to draw. Others have said that it should be lightning fast, so who can help, bearing in mind that I am using Delphi 7 and the standard TChart component. I suspect that instead of calling AddXY() 3,600 times I should be preparing the data first, then adding it all at once

VS2010 MFC TeeChart控件命名

强颜欢笑 提交于 2019-12-26 04:29:52
这是我们新建的TeeChart控件 第一步:新建两条曲线 双击控件,单击Add,取消3D 双击Fast Line,就成功创建一条曲线了 修改标题: 修改Y轴: 修改X轴: 修改曲线提示: 来源: CSDN 作者: 无殇奥法 链接: https://blog.csdn.net/qq_25397143/article/details/103704458

How to create multiline legend in teechart?

余生长醉 提交于 2019-12-25 07:30:24
问题 Does anybody know if there a way to write multiline legend of a chart? I've tried to add TeeLineSeparator or #13, and it doesn't work? Thanks very much 回答1: I'm afraid not in the current legend. The alternatives are to use the CustomLegend tool TeeChart Pro provides or to directly draw your shapes and strings in the OnAfterDraw event using custom drawing techniques. Ie: uses Series, TeCanvas; procedure TForm1.FormCreate(Sender: TObject); var i: Integer; begin Chart1.Legend.Visible:=false;

Javascript teechart - set min or max not working?

本小妞迷上赌 提交于 2019-12-25 06:53:23
问题 We have the following problem - no matter what we try, we can't set the minimum or maximum on our chart in javascript. Chart1 = new Tee.Chart("canvas"); var a = new Tee.Area(); Chart1.addSeries(a); a.data.values = values a.data.x = times; a.format.fill = "rgba(0,175,240,0.0)"; var aa = new Tee.Line(); Chart1.addSeries(aa); aa.data.values = values aa.data.x = times; Chart1.getSeries(0).vertAxis = "right"; Chart1.getSeries(1).vertAxis = "right"; Chart1.axes.bottom.labels.dateFormat = "UTC:HH:MM

TChart find valueindex with mousemove over bottom axis label

谁说我不能喝 提交于 2019-12-25 03:11:43
问题 Delphi 7 and TChart version 2014Delphi7 I have a 3d TChart with 16 bar series and 16 values. (a 16x16 3d bar chart) When I move the mouse over the bottom axis I need to know the valueindex of the series the mouse is over. I want to hide(transparency=75) all other values so only the bars for that index are displayed. (show only that index for all series so displayed is in effect a 1x16 chart) How can I get the index the mouse is over? 回答1: The Series' Clicked(X,Y) function returns -1 if the