Page 1 of 1
Rounded corners & background
Posted: Fri May 12, 2006 1:35 pm
by 9637821
What property do I have to change to make the black background color white or transparent? (the rounded edges look funny with black)
Posted: Fri May 12, 2006 1:44 pm
by narcis
Hi realize,
You can try using:
Posted: Fri May 12, 2006 1:54 pm
by 9637821
This is a .NET web project, so the code I used is:
Code: Select all
Tchart1.panel.Color = ColorTranslator.FromHtml("white")
The result is that the foreground color has changed, but not the background:
Posted: Fri May 12, 2006 2:07 pm
by narcis
Hi realize,
Are you using TeeChart Pro ActiveX or TeeChart for .NET for this project?
Posted: Fri May 12, 2006 2:18 pm
by 9637821
Teechart for .NET 2 (TeeChartNET2.exe)
Ooops!
Wrong forum
could you please relocate the thread?
Thanx!
Posted: Fri May 12, 2006 2:27 pm
by narcis
Hi realize,
Don't worry, done!
You can see an example doing what you request at our
ASP.NET on-line demo. The example can be found at
List of Features\Interacting with Charts\Mouseover Hints\Modify Standard Mark Text. This demo source code is visible under the
View C# Code link.
You also have a local copy of the demo at
C:\Program Files\Steema Software\TeeChart for .NET v2\TeeChartForNET (default english installation path).
Posted: Fri May 12, 2006 2:30 pm
by 9637821
What attribute / property should I be looking for?
Posted: Fri May 12, 2006 2:34 pm
by narcis
Hi realize,
Look at the
Chart Border section:
Code: Select all
// Chart Border
WebChart1.BackColor = Color.White;
ch1.Panel.ImageBevel.Visible = false;
ch1.Panel.ImageBevel.Pen.Visible = false;
ch1.Panel.Bevel.Outer = Steema.TeeChart.Drawing.BevelStyles.None;
ch1.Panel.Bevel.Inner = Steema.TeeChart.Drawing.BevelStyles.None;
ch1.Panel.BorderRound = 50;
ch1.Panel.Pen.Visible = false;
ch1.Panel.Shadow.Visible = false;
BackColor
Posted: Fri May 12, 2006 3:17 pm
by 9637821
Hello again, and thanks a lot for your swift replies.
I had already set most of these options, and just set the ones I hadn't, but I can't seem to be able to find the backcolor property (or bgcolor for the matter) directly on the chart object.
And let me guess, it's the one that sets the color behind the panel
EDIT : Nevermind, just found it, it's a web form that I was talking about, and the property was to be set in the aspx file, and not in it's codebehind
Thanks a lot once again