FAQ Database Discussion Community


change single point color in teechart

java,teechart
i'm using teechart in java.I want to change some points color in a series,not all of the points.If the point's value is over a specific value,then turn the point into red. i just know how to change all the point's color,and here is my code. xline.getPointer().setVisible(true); // 数据点突出显示 // xline.getPointer().setStyle(PointerStyle.CIRCLE);...

Is there a way to export a TeeChart to PDF?

c++,c++builder,teechart
I've created a TeeChart in RAD Studio XE8 C++ Builder. I know you can use Print or PrintPartial to output to a printer. I'm wondering if there's a way to output this TeeChart to a PDF? edit: This feature is included in the "pro" version. For now, I'm using the...

Canvas.textout doesn´t show text after a new series is made visible

delphi,teechart
So what i'm doing is display the x and y values of the mouse pointer on a teechart chart using the following code, inside the onmousemove event: oscilografia.Repaint; if ((x>236) and (x<927)) and ((y>42) and (y<424)) then begin oscilografia.Canvas.Brush.Style := bsSolid; oscilografia.Canvas.Pen.Color := clBlack; oscilografia.Canvas.Brush.Color := clWhite; oscilografia.Canvas.TextOut(x+10,y,datetimetostr(oscilografia.Series[0].XScreenToValue(x))+','+FormatFloat('#0.00',oscilografia.series[0].YScreenToValue(y)));...

TeeChart ScrollPager realtime update

java,teechart
I'm trying to update main chart series data dynamically, but ScrollPager freezes my chart's frame if I move ColorBand or if I do updating of the chart while it's already repainting with a lot of ArrayOutOfIndex exceptions. I understend why it happens, but don't know how to use it right...

Storing reference to object in TeeChart

delphi,vcl,delphi-xe5,teechart
I'm using TeeChart with Delphi XE5 and utilizing the BubbleSeries component to show X/Y/Radius bubbles in a chart. I'm building the chart using an list of objects that I have, calculating X/Y/Radius values for these objects on the fly and inserting them using the TBubbleSeries.AddBubble method. The problem is when...

How to draw ColorLine in TeeChart with DASH style?

java,android,teechart
I'm triyng to add a ColorLine Tool to my TeeChart on Android (Java version). Everything works fine except I can't make the line to be drawn with DASH style. Here's my code snippet: ColorLine closeLabelLine = new ColorLine(chart.getChart()); closeLabelLine.setValue(closeValue); closeLabelLine.setAxis(chart.getAxes().getRight()); closeLabelLine.getPen().setStyle(DashStyle.DASH); //Seems like no effect! closeLabelLine.getPen().setColor(CLOSE_LABEL_COLOR); What am I doing...

Reset Marks in Line Series Teechart

teechart
I have added Marks in Line series, But when we are adding marks in same x-axis then it is showing both marks previously added and new one also. i wanted to show only last one. m_ctrlChart.AddSeries(scLine); m_ctrlChart.Series(0).AddNullXY(0, 5, ""); m_ctrlChart.Series(0).AddXY(22, 5, "C", 0); // Here we have added 'C' on...

TChart : The check/unchecked event not working in ExtraLegendTool

delphi-xe2,teechart
I displayed an ExtraLegendTool with checkboxes but the checkbox event is not working. Here is the code to display the ExtraLegend: procedure TFRChart.TCChartAfterDraw(Sender: TObject); begin if CKDisplay.Checked then begin with ExtraLegend do begin Active:= True; Series := TBarSeries(Self.FindComponent('SeriesTotal')); with Legend do begin LegendStyle := lsAuto; CheckBoxes := True; //MaxNumRows :=...

Error when TChart is docked

delphi,c++builder,access-violation,teechart,docking
I get an AV when I dock a Form, wich contains a TChart, into another Form. The error does not occure when the Autoaint property of the TChart is set to True. I have tested this with C++Builder XE6, XE7 and Delphi Builder XE6 with the standard version of TeeChart....

Want to set label value on TeeChart InnerTick VC++

activex,teechart
I wanted to set label text value on TeeChart InnerTick using VC++. like we have below example (I wanted to set AAAA,BBBB,CCCC,DDDD values). // Sorry i was not able to attach image. Below mention chart we have created using CGraph. to get co-ordinates we are using SDKInfo property. i wanted...

How to set Android TeeChart Border Color

android,teechart
I use Steema TeeChart JAVA for Android to create a Chart. With the following code i tried to change the color of the charts border, but it effects nothing. public void setBorderColor(Color borderColor){ tChart.getWalls().getRight().setColor(borderColor); tChart.getWalls().getLeft().setColor(borderColor); tChart.getWalls().getBottom().setColor(borderColor); tChart.getWalls().getBack().setColor(borderColor); } ...

Unable to open file XML.XMLINTF.OBJ

c++,xml,c++builder,teechart,c++builder-xe7
I developed all my code at C++ Builder XE with TeeChart 2011. So, now I want to migrate to C++ Builder XE7 with TeeChart 2015. When I try to compile my code, the message error is presented: [ilink32 Error] Fatal: Unable to open file 'XML.XMLINTF.OBJ' I don't use any XML...

How can I simulate events like Series1DblClick or Chart1ClickSeries when programatically creating Charts and Series on the runtime?

delphi,teechart
In a small Delphi program I create few TCharts and TBarSeries programmatically on the runtime but then I want to be able to click on a bar of the chart and fire, for example, a Chart1ClickSeries event to display information of that bar. Is that possible??

OnGetLegendTextTchart event is not getting fired

activex,teechart
I want to update the text and symbol on legend items. I am creating legend text with symbol using series and CSeriesPointerItems. I thought of using OnGetLegendTextTchart event, but it is not getting fired. OnAfterDrawTchart event is getting fired. So I am unable to understanding why is it not happening?...

Teechart HTML5, line color and thickness

javascript,html5,teechart
How do you change the line color and thickness of a series in Teechart HTML5. I have been looking through the examples, but i can't find anything describing that....

How to add values to an exisiting TPieSeries via Delphi Xe7

delphi,teechart,delphi-xe7
As the title suggest, how can I add a value to an already existing pie slice in a TPieseries within the TChart component. delphi XE7 for iOS FMX...

TeeChart Label, when screen density > 1, wrong positioned on Y-Axis on Android

android,xamarin,teechart
TeeChart Label, when screen density > 1, wrong positioned on Y-Axis on Android and it gets worse the with density. the "funny" thing is that it is the "displacement" or "depth" from the 3D model that i cant get rid off. the same code on the iphone has no problems....

TeeChart bottom axis labels are cut off in iOS

ios,xamarin,teechart
I'm building an iOS app (unified) using Xamarin. I'm also using TeeCharts. I have a very simple bar chart whose bottom axis labels are rotated by 90 degrees (vertical labels). The bottom axis shows dates (10 days, starting from today). I've also set the date format to "MM/dd". Here's my...

TChart : Get mark style with series title together with its value

delphi-xe2,teechart
I have bar series in which I want to set the marks style that contains both the series title and the actual value of the bar. Here's my code : procedure TFRDept.PopulateDeptChart; var Loop ,YearIndex: integer; DeptKey: String; StartBar, TotalBar, EndBar : TBarSeries; begin for Loop := 0 to FDeptList.Count...

TeeChart: Adding candles to chart without specifying their time

java,android,teechart
I'm looking for a way to add data to OHLC series without specifying date values of the point. So let's assume that I have a List<Candle> where Candle object contain values for high, low, open and close, but not the date. I'd like to add values to series in such...

Custom datetime step on teechart

delphi,teechart
I'm making a software where i plot samples measured from an electric circuit on a teechart chart. The user needs to be able to select the time window of the samples on the screen. For example, the chart has 10 fixed divisons on the screen, and each of these divisions...

Teechart :How to move a visible series mark by code?

delphi,teechart,delphi-xe4
In a TLineSeries called serie1 with parent chart cht1, where I have visible marks, I'm trying to move one mark by code. My problem is that when I try to set mark position's Custom property to true, I get an "access violation" exception. But, if I drag the mark (with...

Controlling axis labels position in TeeChart

java,android,teechart
I have an issue with displaying axis labels for a bottom axis in TeeChart. Axis labels in my case are rather long and represent dates in format dd.MM.yyyy In some cases when labels are placed close to each other they're shown one on top of each other (overlapping occurs). I...