Page 1 of 1
Negative numbers
Posted: Thu Mar 18, 2010 2:45 pm
by 14045174
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.
Re: Negative numbers
Posted: Fri Mar 19, 2010 11:58 am
by 10050769
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,
Re: Negative numbers
Posted: Fri Mar 19, 2010 5:49 pm
by 14045174
Here I've set legeng title shadow offsets to (-20, -20) so the problem is more visible:
- Shadow.Shape.Legend.Title.-20.png (44 KiB) Viewed 7239 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 (44.04 KiB) Viewed 7239 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.
Re: Negative numbers
Posted: Fri Mar 19, 2010 5:59 pm
by 14045174
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 (31.09 KiB) Viewed 7236 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 (26.76 KiB) Viewed 7236 times
Re: Negative numbers
Posted: Mon Mar 22, 2010 11:38 am
by 10050769
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,