Added a Maker & Text

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
pcs_user
Newbie
Newbie
Posts: 5
Joined: Fri Oct 09, 2015 12:00 am

Added a Maker & Text

Post by pcs_user » Mon Aug 29, 2016 3:58 pm

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?
Attachments
chart2.jpg
chart2.jpg (168.39 KiB) Viewed 11859 times
chart.jpg
chart.jpg (328.8 KiB) Viewed 11826 times

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Added a Maker & Text

Post by Yeray » Tue Aug 30, 2016 7:56 am

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;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

pcs_user
Newbie
Newbie
Posts: 5
Joined: Fri Oct 09, 2015 12:00 am

Re: Added a Maker & Text

Post by pcs_user » Thu Sep 01, 2016 1:56 pm

I’m not familiar with Delphi. Are there any C++ examples?
Thanks.

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Added a Maker & Text

Post by Yeray » Fri Sep 02, 2016 7:43 am

Hello,
pcs_user wrote:I’m not familiar with Delphi. Are there any C++ examples?
It's not so different:

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,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

pcs_user
Newbie
Newbie
Posts: 5
Joined: Fri Oct 09, 2015 12:00 am

Re: Added a Maker & Text

Post by pcs_user » Tue Sep 06, 2016 2:18 pm

Yeray,
How do I get the location of the marker so I can display the value of Series 1?
Thanks for your help.

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Added a Maker & Text

Post by Yeray » Wed Sep 07, 2016 9:15 am

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?
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

pcs_user
Newbie
Newbie
Posts: 5
Joined: Fri Oct 09, 2015 12:00 am

Re: Added a Maker & Text

Post by pcs_user » Thu Sep 08, 2016 5:19 pm

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.

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Added a Maker & Text

Post by Yeray » Fri Sep 09, 2016 7:19 am

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
Tee9New_win64Delphi24_2016-09-09_09-17-08.png (184.39 KiB) Viewed 11782 times
The Features Demo is shipped with the binary version.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

pcs_user
Newbie
Newbie
Posts: 5
Joined: Fri Oct 09, 2015 12:00 am

Re: Added a Maker & Text

Post by pcs_user » Fri Sep 09, 2016 12:24 pm

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.

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Added a Maker & Text

Post by Yeray » Mon Sep 12, 2016 7:44 am

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply