Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 556

Summary: Incorrect Legend.Transparency behaviour, and Y axis labels are overlapped with the axis title in WPF
Product: .NET TeeChart Reporter: Shinobu Nagai <nagai>
Component: WPFAssignee: Steema Issue Manager <issuemanager>
Status: CONFIRMED ---    
Severity: normal CC: belmic, chris, sandra
Priority: ---    
Version: TeeChart.NET 2013 4.1.2013.11080   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: http://www.teechart.net/directline/viewtopic.php?f=6&t=889&start=20#p4326
Chart Series: --- Delphi / C++ Builder RAD IDE Version:
Attachments: Incorrect Legend.Transparent behaviour, and title and labels of Y axis are overlapped
Screencap of the TeeChart.WPF
overlapped axis label and title when there is no data

Description Shinobu Nagai 2014-01-30 20:01:15 EST
Please see the attached image.

The upper charts show the result in a user's tested environment, and the lower charts are the ones in his deployment environment.

1. If he sets the Legend.Transparency, it's also applied to the legend texts:
In v4.1.2012.1311, Transparency was applied to the background of the legend only. 
In v4.1.2013.11081, however, it's applied to entire legend. 

I also attach the sample project to reproduce them at your end. Please add the reference again and rebuild the project.

2. If changing Y axis labels, the labels and title aren't displayed correctly:
In v4.1.2012.1311, if Y axis labels were changed, the chart was automatically redrawn to fit everything inside of the chart area.
In v4.1.2013.11081, however, if Y axis labels are changed, the chart wasn't automatically redrawn, and Y axis labels are overlapped with Y axis title in his tested environment. 
In his deployment environment, Y axis title was shifted outside of the screen and wasn't displayed.
Anyway, they aren't displayed correctly.
Comment 1 Shinobu Nagai 2014-01-30 20:05:25 EST
Created attachment 79 [details]
Incorrect Legend.Transparent behaviour,  and title and labels of Y axis  are overlapped
Comment 2 Shinobu Nagai 2014-01-30 20:09:33 EST
Please see the above url for details and download the sample project to reproduce the issues.
Comment 3 Shinobu Nagai 2014-01-30 20:10:35 EST
Please see the above url for details and download the sample project to reproduce the issues.
Comment 4 Shinobu Nagai 2014-05-27 00:04:45 EDT
When will this problem be fixed?
1. If he sets the Legend.Transparency, it's also applied to the legend texts:
In v4.1.2012.1311, Transparency was applied to the background of the legend only. 
In v4.1.2013.11081, however, it's applied to entire legend.
Comment 5 christopher ireland 2014-05-27 06:46:03 EDT
Created attachment 211 [details]
Screencap of the TeeChart.WPF
Comment 6 christopher ireland 2014-05-27 06:50:20 EDT
I'm using TeeChart.WPF.dll v.4.1.2014.5094 and the following code:

    private void InitializeChart()
    {
      tChart1.Series.Add(new Bar()).FillSampleValues();

      tChart1.Legend.CustomPosition = true;
      tChart1.Legend.Left = 100;
      tChart1.Legend.Color = Colors.Transparent;

      tChart1.Axes.Left.Title.Text = "Left Axis Title";
      tChart1.Axes.Left.Title.Angle = 90;
    }

This code gives me the Chart shown in this screenshot:
http://bugs.teechart.net/attachment.cgi?id=211

As you can see:
1) The axis title is being rendered correctly
2) The Legend.Color can be set to Colors.Transparent giving the desired transparent effect.

The Legend.Transparency property was changed by design to affect the entirety of the Legend object and not just its background.
Comment 7 Shinobu Nagai 2014-06-03 21:14:52 EDT
Created attachment 222 [details]
overlapped axis label and title when there is no data
Comment 8 Shinobu Nagai 2014-06-03 21:30:31 EDT
Regarding the issue2:
> 2. If changing Y axis labels, the labels and title aren't displayed correctly:

This user checked it with v4.1.2014.02241. Please see the attached image. As you see, y axis label "0" and y axis title didn't overlapped with each other in the previous version. 
Whereas with vv4.1.2014.02241, they overlap with eachother.

To reproduce it, please set the following code to a new project and run it.

private void Form1_Load(object sender, EventArgs e)  {
     tChart1.Chart.Series.Add(new Steema.TeeChart.Styles.Line());

     tChart1.Chart.Axes.Left.Title.Text = "ABCDEFGHIJK";
     tChart1.Chart.Axes.Left.Title.Visible = true;  }

When there is no data, y axis label "0" and y axis title are overlapped. In case of adding some data, it doesn't occur. This user wants to display axis scale (axis, ticks, labels, title, etc.) even before adding data.
Comment 9 christopher ireland 2014-06-04 04:42:38 EDT
issue2 is a duplicate of http://bugs.teechart.net/show_bug.cgi?id=778 which has already been fixed (there's a temporary workaround in the bug report of id=778).