Page 1 of 1
Legend and line issues with 3 Dimensions selected
Posted: Thu Jan 12, 2017 10:14 pm
by 15048900
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 (15.64 KiB) Viewed 8911 times
if I turn on the 3D setting I get:
- 3D-On.PNG (16.89 KiB) Viewed 8910 times
The easiest way to duplicate this is to click the 3 Dimensions check box if tools is open:
- What I click.PNG (8.25 KiB) Viewed 8910 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?
Re: Legend and line issues with 3 Dimensions selected
Posted: Mon Jan 16, 2017 9:12 am
by Christopher
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 (37.22 KiB) Viewed 8899 times
then having activated 3D:
- threeD2.PNG (49.72 KiB) Viewed 8896 times
do you get the same with this code? If so, could you please modify it so I can reproduce your issue here?
Re: Legend and line issues with 3 Dimensions selected
Posted: Tue Jan 17, 2017 3:02 pm
by 15048900
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.
Re: Legend and line issues with 3 Dimensions selected
Posted: Fri Jan 20, 2017 9:38 am
by Christopher
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 (16.41 KiB) Viewed 8865 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 (23.26 KiB) Viewed 8863 times