Page 1 of 1
Added a Maker & Text
Posted: Mon Aug 29, 2016 3:58 pm
by 16476639
I’m using TeeChart Pro V2016.18.160504
I'm using C++Builder Seattle Update 1
1. I’m looking to put a maker on a Series. A red dot or a dotted white line.
2. I want text as value for the Y side of the chart, is that possible?
Re: Added a Maker & Text
Posted: Tue Aug 30, 2016 7:56 am
by yeray
Hello,
pcs_user wrote:I’m looking to put a maker on a Series. A red dot or a dotted white line.
You can use a TColorLine for this. Ie in Delphi:
Code: Select all
with Chart1.Tools.Add(TColorLineTool) as TColorLineTool do
begin
Pen.Color:=clWhite;
Pen.Width:=2;
Pen.Style:=psDash;
Axis:=Chart1.Axes.Bottom;
Value:=123750;
end;
pcs_user wrote:I want text as value for the Y side of the chart, is that possible?
You can change the Labels Style to talValue. In Delphi:
Code: Select all
Chart1.Axes.Left.LabelStyle:=talValue;
Re: Added a Maker & Text
Posted: Thu Sep 01, 2016 1:56 pm
by 16476639
I’m not familiar with Delphi. Are there any C++ examples?
Thanks.
Re: Added a Maker & Text
Posted: Fri Sep 02, 2016 7:43 am
by yeray
Hello,
pcs_user wrote:I’m not familiar with Delphi. Are there any C++ examples?
It's not so different:
Code: Select all
TColorLineTool* ChartTool1 = new TColorLineTool(Chart1);
Chart1->Tools->Add(ChartTool1);
ChartTool1->Pen->Color=clWhite;
ChartTool1->Pen->Width=2;
ChartTool1->Pen->Style=psDash;
ChartTool1->Axis=Chart1->Axes->Bottom;
ChartTool1->Value=123750;
Re: Added a Maker & Text
Posted: Tue Sep 06, 2016 2:18 pm
by 16476639
Yeray,
How do I get the location of the marker so I can display the value of Series 1?
Thanks for your help.
Re: Added a Maker & Text
Posted: Wed Sep 07, 2016 9:15 am
by yeray
Hello,
I'm not sure to understand what is the exact behaviour you are trying to achieve.
Do you know the x value of the vertical line / red dot? Do you want to drag the color line / the red dot? Do you want the color line /the red dot to follow the mouse movement?
Re: Added a Maker & Text
Posted: Thu Sep 08, 2016 5:19 pm
by 16476639
Yeray,
I’ll try to clear it up for you.
I don’t know how to get the x value of the vertical white dashed line (TColorLineTool).
I know how to drag the vertical white dashed line.
I want the “y” value from Series1 on the chart when I move the vertical white dashed line so I could display it on the chart.
Re: Added a Maker & Text
Posted: Fri Sep 09, 2016 7:19 am
by yeray
Hello,
Have you seen the demo at "All features\Welcome !\Chart styles\Standard\Line (Strip)\Interpolating Line series"?
I believe it does pretty much what you are trying to achieve.
- Tee9New_win64Delphi24_2016-09-09_09-17-08.png (184.39 KiB) Viewed 11815 times
The Features Demo is shipped with the binary version.
Re: Added a Maker & Text
Posted: Fri Sep 09, 2016 12:24 pm
by 16476639
Hello,
Thanks for your help.
I’ve not seen the demos. I didn’t have them in my download.
Is there a way I could download them?
I have version TeeChart Pro v2016 VCL/FMX. I didn’t know what is a binary version of the program.
Re: Added a Maker & Text
Posted: Mon Sep 12, 2016 7:44 am
by yeray
Hello,
The binary version is the version without sources, where the packages come precompiled.
This version includes the examples and the documentation. You should find a shortcut to the "New Features Demo" in the TeeChart group in the start menu. Alternatively, you can find the Tee9New*.exe at the "Examples" folder in the TeeChart installation path.