Show % on left axis
-
- Newbie
- Posts: 65
- Joined: Mon Jan 19, 2004 5:00 am
Show % on left axis
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);
WebChart1.Chart.Axes.Left.SetMinMax(0,100);
Hi MikeTheLad
You need to fix the style of labels and you have to use the "GetAxisLabel" event, as below code:
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 + " %";
}
}
-
- Newbie
- Posts: 65
- Joined: Mon Jan 19, 2004 5:00 am
-
- Newbie
- Posts: 65
- Joined: Mon Jan 19, 2004 5:00 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
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
-
- Newbie
- Posts: 65
- Joined: Mon Jan 19, 2004 5:00 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'
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'
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi MikeTheLad,
Have you checked that your project references to new TeeChart assemblies?
Thanks in advance.
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 |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 65
- Joined: Mon Jan 19, 2004 5:00 am
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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 |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 65
- Joined: Mon Jan 19, 2004 5:00 am
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
thanks
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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 |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 65
- Joined: Mon Jan 19, 2004 5:00 am
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi MikeTheLad,
Thanks for the project. You could try adding assigning the GetAxisLabel event like this:
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 |
Instructions - How to post in this forum |