![]() | Steema Issues DatabaseNote: 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. |
| 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: | WPF | Assignee: | 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
Created attachment 79 [details]
Incorrect Legend.Transparent behaviour, and title and labels of Y axis are overlapped
Please see the above url for details and download the sample project to reproduce the issues. Please see the above url for details and download the sample project to reproduce the issues. 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. Created attachment 211 [details]
Screencap of the TeeChart.WPF
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.
Created attachment 222 [details]
overlapped axis label and title when there is no data
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.
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). |