Negative numbers

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
UserLS
Advanced
Posts: 247
Joined: Wed May 23, 2007 12:00 am

Negative numbers

Post by UserLS » Thu Mar 18, 2010 2:45 pm

I still have not found a single place in TChart, where negative numbers are valid selections and do work correctly.
  • Shadows with negative offsets are finally showing up, but anything, which needs to be adjusted for the shadow is either adjusting in wrong direction (headers and footers) or simply do nothing (legend title).
  • Anything, which allows rotation produces completely different results for angles 315 and -45 (which is the same angle!) - look at marks or axis labels for examples.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Negative numbers

Post by Sandra » Fri Mar 19, 2010 11:58 am

Hello UserLs,
Anything, which allows rotation produces completely different results for angles 315 and -45 (which is the same angle!) - look at marks or axis labels for examples.
The problem is already known to us with number (TF02014606). I have increased its priority.
Shadows with negative offsets are finally showing up, but anything, which needs to be adjusted for the shadow is either adjusting in wrong direction (headers and footers) or simply do nothing (legend title).
I couldn't reproduce your problem using next code:

Code: Select all

        public Form1()
        {
            InitializeComponent();
            InitializeChart();
        }
        Steema.TeeChart.Styles.Bar bar1;
        private void InitializeChart()
        {
            tChart1.Header.Visible = true;
            bar1 = new Steema.TeeChart.Styles.Bar(tChart1.Chart);
            bar1.FillSampleValues();
            bar1.Pen.Visible = false;
            tChart1.Header.Font.Shadow.Visible = true;
            tChart1.Header.Font.Shadow.Width = -9;
            tChart1.Header.Font.Shadow.Height= -9;
        }
Please, you could say if you can reproduce the problem using previously code?

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

UserLS
Advanced
Posts: 247
Joined: Wed May 23, 2007 12:00 am

Re: Negative numbers

Post by UserLS » Fri Mar 19, 2010 5:49 pm

Here I've set legeng title shadow offsets to (-20, -20) so the problem is more visible:
Shadow.Shape.Legend.Title.-20.png
Shadow.Shape.Legend.Title.-20.png (44 KiB) Viewed 7237 times
You cannot see the shadow and the title is running out of the legend box.

If I am using offsets (20, 20) - the shadow now is outside the legend box:
Shadow.Shape.Legend.Title.20.png
Shadow.Shape.Legend.Title.20.png (44.04 KiB) Viewed 7237 times
After I started to call Chart.Refresh() before saving it to file, legend at least tries to recalc its rectangle for the negative shadows.

UserLS
Advanced
Posts: 247
Joined: Wed May 23, 2007 12:00 am

Re: Negative numbers

Post by UserLS » Fri Mar 19, 2010 5:59 pm

For the headers as you can see shadow with negative offsets (-20, -20) do not show up, but the graph is trying to recalc positions to accommodate the shadow. As I suspect, the problem here - offsets are treated as positive numbers and threrefore parts of graph are running onto each other.
Shadow.Shape.Headers.-20.png
Shadow.Shape.Headers.-20.png (31.09 KiB) Viewed 7234 times

The next image is using positive, but big offsets, just to show, that shadows still have major probles (ironically, a lot better behavior is demonstrated by shapes with round rectangle!)
Shadow.Shape.Headers.60.png
Shadow.Shape.Headers.60.png (26.76 KiB) Viewed 7234 times

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Negative numbers

Post by Sandra » Mon Mar 22, 2010 11:38 am

Hello UserLs,

I could reproduce your problems with shadow and I have added in list bug report with number [TF02014741]. We will try to fix for next versions release of TeeChart.Net

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply