Single Point Cannot Change Size

TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
Post Reply
sol
Newbie
Newbie
Posts: 6
Joined: Thu Nov 07, 2013 12:00 am

Single Point Cannot Change Size

Post by sol » Tue Oct 28, 2014 11:55 am

TeeChart Build 3.2014.0519
IDE Eclipse
Android v4.2 (Tablet)

Good Morning

Problem is Plotting a single point on a Points Series Graph would like the point to be easily seen.
But the command getLinePen()->setWidth(8) is not changing the size of the point. I.e. staying at default size.
Please note NOT drawing a line just a single point.

Solomon

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

Re: Single Point Cannot Change Size

Post by Yeray » Tue Oct 28, 2014 2:39 pm

Hi Solomon,

Please use getPointer().setHorizSize() and getPointer().setVertSize() methods to change the pointer size.
Ie, this seems to work fine for me here:

Code: Select all

		tChart1.getAspect().setView3D(false);
		
		Points point1 = new Points(tChart1.getChart());
		point1.add(10);
		
		tChart1.getAxes().getLeft().setMinMax(9, 11);
		tChart1.getAxes().getBottom().setMinMax(-1, 1);

		point1.getPointer().setHorizSize(10);
		point1.getPointer().setVertSize(10);
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

sol
Newbie
Newbie
Posts: 6
Joined: Thu Nov 07, 2013 12:00 am

Re: Single Point Cannot Change Size

Post by sol » Tue Oct 28, 2014 4:01 pm

To Yeray

The 2 lines of code you suggested has made the point larger.
Thank-you

Post Reply