teechart

How to set “absolute” area gradient?

纵饮孤独 提交于 2019-12-12 05:08:42
问题 See the image below. The gradient is painted incorrectly, and the vertical black lines are just ugly. How do I create a gradient that stretches from min to max ? E.g. If I have a scale from 0 to 100 I want my area to use N of these 0..100 gradient values. How do I remove the vertical black lines? UPDATE: The provided answer works, except that I get this artifact: UPDATE 2: This only happens when using ONE LinearLayout as shown below: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns

How do I set min and max for bottom axis for candlestick series in TeeChart?

こ雲淡風輕ζ 提交于 2019-12-12 04:46:10
问题 I'm trying to display a candlestick series with TeeChart library. Everyting is fine except I can't control the range of data displayed. The question is when I add new data to my series, I want to scroll my bottom axis to display the last N values. E.g. when I add a new candle, I want to scrol +1 index to display this bar. I found that Axis class has 2 methods for doing this: axis.setMinMax(DateTime arg0, DateTime arg1) axis.setMinMax(double arg0, double arg1) Which is the right method to use

Why AddGantt or AddGanttColor returns the same index for different invocations?

二次信任 提交于 2019-12-12 04:24:47
问题 For some reason for certain cases when adding gantts to a TGanttSeries instance using method AddGanttColor or AddGantt the same index is returned for two different calls. For example, the following snippet illustrates the case where the last two calls both return index of value 1. Series.AddGanttColor(0, 100, 0, 'WA #234', clGreen); // returns value 0 Series.AddGanttColor(100, 200, 1, 'WA #235', clGreen); // returns value 1 Series.AddGanttColor(50, 200, 2, 'WA #237', clGreen); // returns

Is there a way I can drag a line in steema tchart?

和自甴很熟 提交于 2019-12-12 03:03:05
问题 i have fastline in my tchart. I am adding an array to fastline as a source of data. In run time , fastline is drawn in tchart. now what I want to do is drag a line from particular point of it , move it up and down , etc. and as a result fastline will have changes in the data point values and the shape. Once user does that , I will get the data from fastline to array. Dragging function something like this. http://www.algorithmist.net/qbparam.html so, I can control the line with mouse. Is it

How can I update data in a chart in execution time (in C++ builder)?

空扰寡人 提交于 2019-12-12 02:44:50
问题 I'm using Borland C++ Builder to create this. The code is very simple because its only purpose, for now, is to help me learn how to use the TChart functions. I'll use what I learn to create a more complex program later. I have a series of numbers that must be shown on a memo box and on a chart. The values in the chart are displayed after the program finishes its exectuion, however, I need the values to be updated in real time - I mean, everytime the program calculates a new number, it must be

Performance Issue with TChart

允我心安 提交于 2019-12-12 00:59:55
问题 I'm using Steema TChart in my application. I use this component to chart a line graph, typically containing 1,000 to 2,000 data points, realtime as the data points become available. A typical line takes about 30 seconds to complete. After my 2nd or 3rd line is being generated, the TChart component reaches a point where the processor is being pegged. Even though the chart is being updated, other UI updates are being drastically affected by the redraw that the chart must be performing each time

TeeChart X Axis Label Formatting

こ雲淡風輕ζ 提交于 2019-12-12 00:55:28
问题 I’ve got my TeeChart looking pretty good, the grid lines / ticks appear where I wish and so forth (the X Axis LabelStyle is set to talAuto). Now I need to format the X Axis labels so they display a time offset rather than the data point number. I’ve changed the LabelStyle to talMark and am handling the chart’s OnGetAxisLabel. The problem is that my event handler is called for every X Axis point rather than just the points which displayed labels when I had LabelStyle set to talAuto. How can I

How to turn off the antialiasing in TChart for Firemonkey?

∥☆過路亽.° 提交于 2019-12-11 18:49:37
问题 Does anyone know how to turn off the anti-aliasing in TChart for Firemonkey in Delphi XE2? 回答1: FireMonkey Canvas does not allow enabling or disabling anti-alias for individual controls. It must be done at form level (starting with XE4), using the Form1.Quality property. 来源: https://stackoverflow.com/questions/14672890/how-to-turn-off-the-antialiasing-in-tchart-for-firemonkey

How To Draw Polygon/Rectangle In TChart

前提是你 提交于 2019-12-11 18:31:49
问题 I just need a little push. I have a chart with a series as a tpointseries. I am having difficultly in figuring out how to draw the series as a polygon/rectangle. When I mean polygon or rectangular, you have 4 corners (bottom_left X/Y, top_left X/Y, top_right X/Y and bottom_right XY) which create 4 lines and fill the area between those 4 corners. Thanks in advanced. 回答1: 1) Create series of TChartShape type with rectangle style and add shape with needed coordinates 2) Draw rectangle on chart

Teechart multiple axis creation

送分小仙女□ 提交于 2019-12-11 15:03:50
问题 I am new to C# programming. I am working in a firm, someone has completed some task and left with graph parts. Now i have to do this. I am using steema chart in C#, I want to create chart with multiple axis on left side of the chart (y-axis) and comman x- axis for all. Each axis on lest side will be different axis lengths. I have created six check boxes for different sensor, when i tick that box then regarding axis with default length should appear. I have created check box's but i am not