Legend and line issues with 3 Dimensions selected

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
biqpaulson
Newbie
Newbie
Posts: 93
Joined: Thu Apr 17, 2008 12:00 am

Legend and line issues with 3 Dimensions selected

Post by biqpaulson » Thu Jan 12, 2017 10:14 pm

I am having a couple of issues but I will explain what I am working with beforehand.

I start with a chart created with multiple Line series. The chart looks like:
3D-Off.PNG
3D-Off.PNG (15.64 KiB) Viewed 8544 times
if I turn on the 3D setting I get:
3D-On.PNG
3D-On.PNG (16.89 KiB) Viewed 8543 times
The easiest way to duplicate this is to click the 3 Dimensions check box if tools is open:
What I click.PNG
What I click.PNG (8.25 KiB) Viewed 8543 times
Now for the questions:

1) I want the boxes when 3D is turned off. The Legend lines in 2D mode are just too small for the user to sometimes tell the differences in the color. I have tried to change the Legend symbol and other things but nothing seems to work.
2) Why cannot I have the lines which are in 2D mode when 3D is turned on? The lines in 3D mode are really thick.
3) How do I get the "thick" lines in 2d mode?

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Legend and line issues with 3 Dimensions selected

Post by Christopher » Mon Jan 16, 2017 9:12 am

Hello!

This is what I get with this code:

Code: Select all

		
                private void button2_Click(object sender, EventArgs e)
		{
			tChart1.ShowEditor();
		}

		private void InitializeChart()
		{
			Line series = new Line(tChart1.Chart);
			series.FillSampleValues();
		}
firstly:
threeD1.PNG
threeD1.PNG (37.22 KiB) Viewed 8532 times
then having activated 3D:
threeD2.PNG
threeD2.PNG (49.72 KiB) Viewed 8529 times
do you get the same with this code? If so, could you please modify it so I can reproduce your issue here?
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

biqpaulson
Newbie
Newbie
Posts: 93
Joined: Thu Apr 17, 2008 12:00 am

Re: Legend and line issues with 3 Dimensions selected

Post by biqpaulson » Tue Jan 17, 2017 3:02 pm

The only difference between your code and mine is you can add a line:

Please remember there are two issues. For the first issue:
1) I want the boxes when 3D is turned off. The Legend lines in 2D mode are just too small for the user to sometimes tell the differences in the color. I have tried to change the Legend symbol and other things but nothing seems to work.
Your code is fine. I see the same issue on your charts. You already are getting the Legend problem in your charts that I am getting. The "line" in 2D and the "block" when 3D is turned on.

For the second issue:
2) Why cannot I have the lines which are in 2D mode when 3D is turned on? The lines in 3D mode are really thick.
You are right I had a slight change in your code from mine:

Code: Select all

private void InitializeChart()
      {
         Line series = new Line(tChart1.Chart);
         series..Depth =  series.LinePen.Width;
         series.FillSampleValues();
      }
The default LinePen.Width is "1" and I noticed that if you make the value larger the change from 2D to 3D always doubles the value.

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Legend and line issues with 3 Dimensions selected

Post by Christopher » Fri Jan 20, 2017 9:38 am

Apologies for the delay in this reply.
biqpaulson wrote: 1) I want the boxes when 3D is turned off. The Legend lines in 2D mode are just too small for the user to sometimes tell the differences in the color. I have tried to change the Legend symbol and other things but nothing seems to work.
My best suggestion is to use the technique shown in the demo under:

%programfiles(x86)% \Steema Software\Steema TeeChart for .NET 2016 4.1.2016.10260\Examples\DemoProject\bin\ExecutableDemo\TeeChartNetExamples.exe

All Features -> Welcome !\Miscellaneous\Legend\OnDrawSymbol Event

You could create small image file with a coloured rectangle.
biqpaulson wrote: 2) Why cannot I have the lines which are in 2D mode when 3D is turned on? The lines in 3D mode are really thick.
You could try using the FastLine series instead of the Line series, which would give you:

Code: Select all

		private void InitializeChart()
		{
			tChart1.Aspect.View3D = true;

			FastLine series = new FastLine(tChart1.Chart);
			series.FillSampleValues();

			FastLine series1 = new FastLine(tChart1.Chart);
			series1.FillSampleValues();
		}
TChart636205049547319377.png
TChart636205049547319377.png (16.41 KiB) Viewed 8498 times
biqpaulson wrote: 3) How do I get the "thick" lines in 2d mode?
The closest might be something like this:

Code: Select all

		private void InitializeChart()
		{
			tChart1.Aspect.View3D = false;

			Line series = new Line(tChart1.Chart);
			series.FillSampleValues();

			Line series1 = new Line(tChart1.Chart);
			series1.FillSampleValues();

			series.LinePen.Width = 7;
			series.LinePen.EndCap = System.Drawing.Drawing2D.LineCap.Round;

			series1.LinePen.Width = 7;
			series1.LinePen.EndCap = System.Drawing.Drawing2D.LineCap.Round;
		}
TChart636205054254545074.png
TChart636205054254545074.png (23.26 KiB) Viewed 8496 times
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Post Reply