Page 1 of 1

Display issue when using UseOrigin property

Posted: Fri Jun 04, 2010 8:24 am
by 15655558
Hi,

The issue occurs in Tchart 2009 with the following scenarios:
- UseOrigin of bar is set to false.
- MultiBar of bar is set to SideAll.

If we change the UseOrigin to true OR Multibar set to Side, we will not have any issue.

We do not see this issue in the older version of Tchart.

Refer to TestBarChart_SideAll_UseOrigin.zip for sample application.

Re: Display issue when using UseOrigin property

Posted: Mon Jun 07, 2010 12:01 pm
by yeray
Hi mcpang,

You are right. I could reproduce it with the following (simpler) code so I've added to the defect list to be fixed asap (TF02014942):

Code: Select all

            tChart1.Aspect.View3D = false;

            Steema.TeeChart.Styles.Bar bar1 = new Steema.TeeChart.Styles.Bar(tChart1.Chart);
            Steema.TeeChart.Styles.Bar bar2 = new Steema.TeeChart.Styles.Bar(tChart1.Chart);

            bar1.Add(-10);
            bar1.Add(-20);
            bar2.Add(-30);
            bar2.Add(-40);

            //bar1.Add(10);  //scroll down the chart
            //bar1.Add(20);
            //bar2.Add(30);
            //bar2.Add(40);

            bar1.UseOrigin = false;
            bar1.MultiBar = Steema.TeeChart.Styles.MultiBars.SideAll;

Re: Display issue when using UseOrigin property

Posted: Wed Jun 09, 2010 3:33 am
by 15655558
Hi Yeray,

Is there any date that we are looking at for the fix to be released? or does the 2010 version of Teechart resolve this issue?

Re: Display issue when using UseOrigin property

Posted: Wed Jun 09, 2010 11:26 am
by 10050769
Hello mcpang,
or does the 2010 version of TeeChart resolve this issue?
It problem it isn't resolved in last version of TeeChart2010.
Is there any date that we are looking at for the fix to be released?
I'm afraid not yet. I recommend you to be aware at this forum or subscribe to our RSS news feed for new release announcements and what's implemented on them.

Thanks,

Re: Display issue when using UseOrigin property

Posted: Fri Jun 11, 2010 2:30 pm
by yeray
Hi mcpang,

I'm pleased to announce that the problem (TF02014942) has been already solved and the fix will be available with the next maintenance release. At the same time, note that setting UseOrigin to false doesn't change the other Bar series have the same UseOrigin value, so you should set it for all the series you want.

On the other hand, while investigating this, we've seen that, right now, UseOrigin=false is drawn like if the origin were on Negative Infinite. Thinking about it, we doubt on the logic about that and if there would be someone interested on bars with the origin on Positive Infinite.

So we'd be pleased if you (and anyone else interested) could share your opinion with us.
By now, here there are some possibilities:

- A boolean like NegativeInfinite, true by default, that, when UseOrigin were false would define the direction of the bars.

- Continue with the bars going to the Negative Infinite and draw them inverted when the vertical axis assigned were set to be Inverted.

- Other possibilities?

Re: Display issue when using UseOrigin property

Posted: Mon Jun 14, 2010 7:18 am
by 13049497
Hi Yeray,

what about something like this

Code: Select all

enum OriginValues
{
/// <summary>
/// before: UseOrigin = true
/// </summary>
Zero,
/// <summary>
/// default value
/// before: UseOrigin = false
/// </summary>
NegativeInfinite,
/// <summary>
/// new value
/// </summary>
PositiveInfinite
}

Re: Display issue when using UseOrigin property

Posted: Tue Jun 15, 2010 11:22 am
by yeray
Hi,

Thanks for the suggestion, I've opened a new ticket to the wish list with your suggestion so it will studied deeper for inclusion in further releases (TF02014971).