Show % on left axis

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
MikeTheLad
Newbie
Newbie
Posts: 65
Joined: Mon Jan 19, 2004 5:00 am

Show % on left axis

Post by MikeTheLad » Thu Jul 26, 2007 12:23 pm

How do you show the % symbol on the left axis on a bar graph, have set the min/max as:-

WebChart1.Chart.Axes.Left.SetMinMax(0,100);

Edu
Advanced
Posts: 206
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia

Post by Edu » Fri Jul 27, 2007 8:07 am

Hi MikeTheLad

You need to fix the style of labels and you have to use the "GetAxisLabel" event, as below code:

Code: Select all

    WebChart1.Chart.Axes.Left.Labels.Style = Steema.TeeChart.AxisLabelStyle.Value; //Fix value style
    }
    protected void WebChart1_GetAxisLabel(object sender, Steema.TeeChart.GetAxisLabelEventArgs e)
    {
        if (sender == WebChart1.Chart.Axes.Left)
        {
            e.LabelText = e.LabelText + " %";
        }
        
    }
Best Regards,
Edu

Steema Support Central
http://support.steema.com/

MikeTheLad
Newbie
Newbie
Posts: 65
Joined: Mon Jan 19, 2004 5:00 am

Post by MikeTheLad » Fri Jul 27, 2007 8:19 am

What will trigger this event to be called, I have but this in the code and routine is not being called.

Edu
Advanced
Posts: 206
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia

Post by Edu » Fri Jul 27, 2007 9:05 am

Hi MikeTheLad

Which TeeChart version are you using? In my machine, the event is called, when I fix the style of labels to value Style.
Best Regards,
Edu

Steema Support Central
http://support.steema.com/

MikeTheLad
Newbie
Newbie
Posts: 65
Joined: Mon Jan 19, 2004 5:00 am

Post by MikeTheLad » Fri Jul 27, 2007 9:10 am

Hi, I am still using version 1, not sure extacly what version, folder is

C:\Program Files\Steema Software\TeeChart for .NET v1 Update Build

Edu
Advanced
Posts: 206
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia

Post by Edu » Fri Jul 27, 2007 9:30 am

Hi MikeTheLad

Here It's working fine using lastest release to v1 (Build 1.1.2531.28391 "available at the web"). Could you please try with the last version?
You should to click on the chart with right mouse button, in design-time and go to "about Steema.TeeChart" to know which is your version.
If the problem persist could you please send us a simple example project we can run "as-is" to reproduce the issue here?

You can post your files either at [url]news://www.steema.net/steema.public.attachments[/url] newsgroup or at our upload page

Please let us know when you have posted the sample project.

Thanks in advance
Best Regards,
Edu

Steema Support Central
http://support.steema.com/

MikeTheLad
Newbie
Newbie
Posts: 65
Joined: Mon Jan 19, 2004 5:00 am

Post by MikeTheLad » Fri Jul 27, 2007 9:54 am

Have now upgraded, now the graph does not not display and get the following error


Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS1595: 'Steema.TeeChart.Web.WebChart' is defined in multiple places; using definition from 'c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\picker-results\d8831d2f\8b40c227\assembly\dl2\d59d7e91\00cc756e_4519c701\TeeChart.Pocket.DLL'



C:\WINDOWS\system32> "c:\windows\microsoft.net\framework\v1.1.4322\csc.exe" /t:library /utf8output /R:"c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dll" /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net files\picker-results\d8831d2f\8b40c227\v4ydpjc_.dll" /R:"c:\windows\assembly\gac\system.web\1.0.5000.0__b03f5f7f11d50a3a\system.web.dll" /R:"c:\windows\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll" /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net files\picker-results\d8831d2f\8b40c227\assembly\dl2\8e9c7b8c\009f1f2c_44f9c601\interop.microsoft.office.interop.word.dll" /R:"c:\windows\assembly\gac\system.web.services\1.0.5000.0__b03f5f7f11d50a3a\system.web.services.dll" /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net files\picker-results\d8831d2f\8b40c227\assembly\dl2\50ecafa4\8bc8ed98_33d0c701\picker-results.dll" /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net files\picker-results\d8831d2f\8b40c227\assembly\dl2\54aff496\00c1312c_a444c401\componentart.web.ui.dll" /R:"c:\windows\assembly\gac\system.web.mobile\1.0.5000.0__b03f5f7f11d50a3a\system.web.mobile.dll" /R:"c:\windows\assembly\gac\system.data\1.0.5000.0__b77a5c561934e089\system.data.dll" /R:"c:\windows\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e089\system.xml.dll" /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net files\picker-results\d8831d2f\8b40c227\assembly\dl2\e59a2393\00b55411_6868c701\interop.microsoft.office.core.dll" /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net files\picker-results\d8831d2f\8b40c227\assembly\dl2\d59d7e91\00cc756e_4519c701\teechart.pocket.dll" /R:"c:\windows\assembly\gac\system.enterpriseservices\1.0.5000.0__b03f5f7f11d50a3a\system.enterpriseservices.dll" /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net files\picker-results\d8831d2f\8b40c227\assembly\dl2\b93b6ee4\003c3a2a_1f69c601\teechart.languages.dll" /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net files\picker-results\d8831d2f\8b40c227\assembly\dl2\e9131167\58866c39_0164c401\globalizationmodule.dll" /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net files\picker-results\d8831d2f\8b40c227\assembly\dl2\f5529407\e85bf4b2_32d0c701\picker-core.dll" /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net files\picker-results\d8831d2f\8b40c227\assembly\dl2\fc0057b1\00cc756e_4519c701\teechart.dll" /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net files\picker-results\d8831d2f\8b40c227\assembly\dl2\5fcb7065\0057ac90_80f4c201\interop.acrobat.dll" /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net files\picker-results\d8831d2f\8b40c227\assembly\dl2\f81d684b\001d927b_9d4ac301\interop.word.dll" /R:"c:\windows\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\system.drawing.dll" /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net files\picker-results\d8831d2f\8b40c227\assembly\dl2\31123a90\00cec86e_2f88c301\radrotator.dll" /out:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\picker-results\d8831d2f\8b40c227\ruqdngbb.dll" /D:DEBUG /debug+ /optimize- /win32res:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\picker-results\d8831d2f\8b40c227\ruqdngbb.res" /warnaserror /w:1 "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\picker-results\d8831d2f\8b40c227\ruqdngbb.0.cs"


Microsoft (R) Visual C# .NET Compiler version 7.10.6001.4
for Microsoft (R) .NET Framework version 1.1.4322
Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.

c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\picker-results\d8831d2f\8b40c227\ruqdngbb.0.cs(146,13): error CS1595: 'Steema.TeeChart.Web.WebChart' is defined in multiple places; using definition from 'c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\picker-results\d8831d2f\8b40c227\assembly\dl2\d59d7e91\00cc756e_4519c701\TeeChart.Pocket.DLL'
http://localhost/picker-results/ss/hist ... spx(22,26): error CS1595: 'Steema.TeeChart.Web.WebChart' is defined in multiple places; using definition from 'c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\picker-results\d8831d2f\8b40c227\assembly\dl2\d59d7e91\00cc756e_4519c701\TeeChart.Pocket.DLL'
http://localhost/picker-results/ss/hist ... spx(22,13): error CS0117: 'Steema.TeeChart.Web.WebChart' does not contain a definition for 'ID'
http://localhost/picker-results/ss/hist ... spx(22,13): error CS0117: 'Steema.TeeChart.Web.WebChart' does not contain a definition for 'AutoPostback'
http://localhost/picker-results/ss/hist ... spx(22,13): error CS0117: 'Steema.TeeChart.Web.WebChart' does not contain a definition for 'TempChart'
http://localhost/picker-results/ss/hist ... spx(22,13): error CS0117: 'Steema.TeeChart.Web.WebChart' does not contain a definition for 'Width'
http://localhost/picker-results/ss/hist ... spx(22,13): error CS0117: 'Steema.TeeChart.Web.WebChart' does not contain a definition for 'Height'
c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\picker-results\d8831d2f\8b40c227\ruqdngbb.0.cs(184,20): error CS0029: Cannot implicitly convert type 'Steema.TeeChart.Web.WebChart' to 'System.Web.UI.Control'

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Jul 30, 2007 11:31 am

Hi MikeTheLad,

Have you checked that your project references to new TeeChart assemblies?

Thanks in advance.
Best Regards,
Narcís Calvet / 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

MikeTheLad
Newbie
Newbie
Posts: 65
Joined: Mon Jan 19, 2004 5:00 am

Post by MikeTheLad » Mon Jul 30, 2007 12:04 pm

I have checked and re-linke to ensure correct,

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Jul 30, 2007 1:10 pm

Hi MikeTheLad,

Could you please send us a simple example project we can run "as-is" to reproduce the problem here and find a a solution to it?

You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.

Thanks in advance.
Best Regards,
Narcís Calvet / 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

MikeTheLad
Newbie
Newbie
Posts: 65
Joined: Mon Jan 19, 2004 5:00 am

Post by MikeTheLad » Mon Jul 30, 2007 1:36 pm

Have uploaded webproject1.zip, whilst creating this I found an extra dll called teechart.pocket.dll. This was not referenced, btu was stopping the graph working. So my graph is now working again, but I am still not gettiing the % on the labels as the routine is not being called. If you could let me know why

thanks

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Jul 30, 2007 1:40 pm

Hi MikeTheLad,

Where have you posted the project, I can't see it in our upload page nor in the newsgroups. Anyway, have you assigned the GetAxisLabel event?

Thanks in advance.
Best Regards,
Narcís Calvet / 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

MikeTheLad
Newbie
Newbie
Posts: 65
Joined: Mon Jan 19, 2004 5:00 am

Post by MikeTheLad » Mon Jul 30, 2007 2:14 pm

Sent it to your upload page

Received WebProject1.zip Content Type application/x-zip-compressed Length 585881

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Jul 30, 2007 2:49 pm

Hi MikeTheLad,

Thanks for the project. You could try adding assigning the GetAxisLabel event like this:

Code: Select all

			WebChart1.GetAxisLabel +=new Steema.TeeChart.GetAxisLabelEventHandler(WebChart1_GetAxisLabel);
Best Regards,
Narcís Calvet / 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

MikeTheLad
Newbie
Newbie
Posts: 65
Joined: Mon Jan 19, 2004 5:00 am

Post by MikeTheLad » Mon Jul 30, 2007 3:20 pm

works, thanks

Post Reply