TeeChart2014 OCX - Line/Bar Chart - Width problem

TeeChart for ActiveX, COM and ASP
Post Reply
Micro
Newbie
Newbie
Posts: 27
Joined: Thu Feb 20, 2014 12:00 am

TeeChart2014 OCX - Line/Bar Chart - Width problem

Post by Micro » Fri Jun 27, 2014 9:19 am

For any type of graph the grid, the wall, the bars (for the bar chart) are 2 pixels even if the width for them are set to 1 or 0. The difference between the width 2 and width 0/1 is the color. Width 2 has black color and 2 pixels and width 0/1 has dark grey with 2 pixels.

In previous version, TeeChart2012 OCX, worked fain.

See attached pictures.
Attachments
YAxisLabelNotPositionedCorrectly.jpg
YAxisLabelNotPositionedCorrectly.jpg (27.55 KiB) Viewed 2431 times
BarChartProblem.PNG
BarChartProblem.PNG (9.25 KiB) Viewed 2423 times

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

Re: TeeChart2014 OCX - Line/Bar Chart - Width problem

Post by Yeray » Fri Jun 27, 2014 3:27 pm

Hello,

The last TeeChart versions use GDIPlus as the default Canvas for rendering. And the AntiAlias in GDIPlus can't draw 1px size lines.
You can set GDI back with this call at runtime:

Code: Select all

TChart1.Aspect.GDIPlus.Active = False
Alternatively, you can set GDI at design time editor, at the "Chart / 3D / Render" tab.

If you want the new charts to be created with GDI as before, you can open the "Options" menu at design time, and select "GDI" in the "Render" combobox at the "New Chart" tab.
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

Micro
Newbie
Newbie
Posts: 27
Joined: Thu Feb 20, 2014 12:00 am

Re: TeeChart2014 OCX - Line/Bar Chart - Width problem

Post by Micro » Mon Jun 30, 2014 7:45 am

Thanks. It's working.

Post Reply