Added a Maker & Text
Added a Maker & Text
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?
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?
- Attachments
-
- chart2.jpg (168.39 KiB) Viewed 11863 times
-
- chart.jpg (328.8 KiB) Viewed 11830 times
Re: Added a Maker & Text
Hello,
You can use a TColorLine for this. Ie in Delphi:pcs_user wrote:I’m looking to put a maker on a Series. A red dot or a dotted white line.
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;
You can change the Labels Style to talValue. In Delphi:pcs_user wrote:I want text as value for the Y side of the chart, is that possible?
Code: Select all
Chart1.Axes.Left.LabelStyle:=talValue;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Added a Maker & Text
I’m not familiar with Delphi. Are there any C++ examples?
Thanks.
Thanks.
Re: Added a Maker & Text
Hello,
It's not so different:pcs_user wrote:I’m not familiar with Delphi. Are there any C++ examples?
Code: Select all
#include "TeeTools.hpp"
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;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Added a Maker & Text
Yeray,
How do I get the location of the marker so I can display the value of Series 1?
Thanks for your help.
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
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?
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?
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Added a Maker & Text
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.
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
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.
The Features Demo is shipped with the binary version.
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.
The Features Demo is shipped with the binary version.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Added a Maker & Text
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.
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
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.
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.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |