Good Morning!
I am having two layout issues that I am hopping you can help me with regarding the Tchart control. Here is a attached is a screen shot of my running chart.
The TChart control is embedded in an Data Dynamics - Active Report report. The problems I am having is the grey line around the right and bottom of the control and the legend covering part of the chart data.
The grey line seems pretty straight forward, but I have tried the border, Frame and Shadow properties on the TChart object with no luck to getting rid of the line.
The Legend problem seems a little more complex. I am not sure what I can try to make that work.
On item that I think may or may not be related is that not all the properties "stick" when I set them through the GUI. What I mean but that is if I set the visible for the left Axis to false in the GUI the change persists through multiple runs of the report and a save of the report.
However if I set the Legend visibility to True in the GUI and then save the report and run it. I still don't see the legend on the report. So I added a piece of code behind the report to set the visibility of the legend to true (TChart1.Legend.Visible = True). The report file is an xml file and the control is represented in hex in the xml. As an example here is the representation of the control as shown in the image above.
<Control Type="TeeChart.TChart.8" CLSID="{BDEB0088-66F9-4A55-ABD2-0BF8DEEC1196}" Name="TChart1" Left="0" Top="720" Width="7200" Height="4320">
<![CDATA[545046300B544368617274436861727400044C656674020003546F70023005576964746803E001064865696768740320010E4261636B57616C6C2E436F6C6F72
0707636C5768697465144261636B57616C6C2E50656E2E56697369626C6508144261636B57616C6C2E5472616E73706172656E7408104261636B57616C6C2E56
697369626C650812426F74746F6D57616C6C2E56697369626C6508124772616469656E742E446972656374696F6E070B6764426F74746F6D546F701147726164
69656E742E456E64436F6C6F720708636C53696C766572105469746C652E466F6E742E436F6C6F720707636C426C61636B115469746C652E466F6E742E486569
67687402F00F5469746C652E466F6E742E4E616D65060756657264616E61105469746C652E466F6E742E5374796C650B066673426F6C6400125469746C652E54
6578742E537472696E6773010614427564676574204279204465706172746D656E74000D5469746C652E56697369626C650814426F74746F6D417869732E4175
746F6D61746963081B426F74746F6D417869732E4175746F6D617469634D6178696D756D0815426F74746F6D417869732E417869732E436F6C6F720706636C47
72617915426F74746F6D417869732E417869732E5769647468020117426F74746F6D417869732E477269642E56697369626C65081B426F74746F6D417869732E
4C6162656C73466F6E742E436F6C6F720706636C477261791C426F74746F6D417869732E4C6162656C73466F6E742E48656967687402F71A426F74746F6D4178
69732E4C6162656C73466F6E742E4E616D65060C547265627563686574204D5324426F74746F6D417869732E4C6162656C73466F6E742E536861646F772E5669
7369626C650812426F74746F6D417869732E4D6178696D756D0500000000000000E0024018426F74746F6D417869732E4D6178696D756D4F6666736574022E18
426F74746F6D417869732E4D696E696D756D4F6666736574022E19426F74746F6D417869732E4D696E6F725469636B436F756E7402001A426F74746F6D417869
732E526F756E6446697273744C6162656C0818426F74746F6D417869732E5469636B732E56697369626C650818426F74746F6D417869732E5469746C652E5669
7369626C65080E4368617274334450657263656E7402140D4672616D652E56697369626C6508164C656674417869732E4D6178696D756D4F6666736574021910
4C656674417869732E56697369626C6508104C6567656E642E416C69676E6D656E7407066C614C656674164C6567656E642E436865636B426F7865735374796C
650708636273526164696F114C6567656E642E436F6C6F725769647468020A154C6567656E642E437573746F6D506F736974696F6E091A4C6567656E642E4469
766964696E674C696E65732E436F6C6F720708636C53696C7665721E4C6567656E642E4469766964696E674C696E65732E536D616C6C446F7473091C4C656765
6E642E4469766964696E674C696E65732E56697369626C6509134C6567656E642E466F6E742E43686172736574070C414E53495F43484152534554104C656765
6E642E466F6E742E4E616D65060C547265627563686574204D53144C6567656E642E4672616D652E56697369626C65080B4C6567656E642E4C6566740201124C
6567656E642E4C6567656E645374796C6507086C7356616C756573124C6567656E642E526573697A65436861727408144C6567656E642E536861646F772E536D
6F6F746808154C6567656E642E536861646F772E56697369626C65081C4C6567656E642E53796D626F6C2E536861646F772E56697369626C6508134C6567656E
642E53796D626F6C2E5769647468020A104C6567656E642E546578745374796C65070D6C7473526967687456616C7565194C6567656E642E5469746C652E466F
6E742E43686172736574070C414E53495F43484152534554164C6567656E642E5469746C652E466F6E742E4E616D65060C547265627563686574204D53174C65
67656E642E5469746C652E466F6E742E5374796C650B00204C6567656E642E5469746C652E466F6E742E536861646F772E56697369626C65081B4C6567656E64
2E5469746C652E536861646F772E56697369626C65080A4C6567656E642E546F7002000D4C6567656E642E546F70506F730205114C6567656E642E566572744D
617267696E039600124C6567656E642E5665727453706163696E6702040656696577334408175669657733444F7074696F6E732E456C65766174696F6E033B01
185669657733444F7074696F6E732E4F7274686F676F6E616C08195669657733444F7074696F6E732E50657273706563746976650200165669657733444F7074
696F6E732E526F746174696F6E0368010B56696577334457616C6C730805436F6C6F720707636C57686974650C5072696E744D617267696E7301020F0207020F
02070011436F6C6F7250616C65747465496E646578020D000A5442617253657269657307536572696573300E42617250656E2E56697369626C65080E436F6C6F
7245616368506F696E7409114D61726B732E4172726F772E436F6C6F720708636C53696C766572134D61726B732E4172726F772E56697369626C6509194D6172
6B732E43616C6C6F75742E42727573682E436F6C6F720707636C5768697465174D61726B732E43616C6C6F75742E50656E2E436F6C6F720708636C53696C7665
72134D61726B732E43616C6C6F75742E5374796C6507087073436972636C65154D61726B732E43616C6C6F75742E56697369626C6509194D61726B732E43616C
6C6F75742E4172726F772E436F6C6F720708636C53696C7665721B4D61726B732E43616C6C6F75742E4172726F772E56697369626C65090F4D61726B732E4261
636B436F6C6F720707636C57686974650B4D61726B732E436F6C6F720707636C5768697465124D61726B732E466F6E742E43686172736574070C414E53495F43
484152534554104D61726B732E466F6E742E436F6C6F72041B1B1B000F4D61726B732E466F6E742E4E616D65060C547265627563686574204D53114D61726B73
2E4672616D652E436F6C6F720708636C53696C766572124D61726B732E4D617267696E732E4C6566740208114D61726B732E4D617267696E732E546F70020313
4D61726B732E4D617267696E732E52696768740208144D61726B732E4D617267696E732E426F74746F6D0203134D61726B732E4D617267696E732E556E697473
07086D61506978656C73124D61726B732E536861646F772E436F6C6F720488888800144D61726B732E536861646F772E56697369626C65080B4D61726B732E53
74796C65070A736D7350657263656E741A4D61726B732E53796D626F6C2E4672616D652E56697369626C6508184D61726B732E53796D626F6C2E50656E2E5669
7369626C65081B4D61726B732E53796D626F6C2E536861646F772E56697369626C65080D4D61726B732E56697369626C65080D50657263656E74466F726D6174
0603232E230B56616C7565466F726D61740603232E23124772616469656E742E446972656374696F6E070B6764546F70426F74746F6D0C5856616C7565732E4E
616D650601580D5856616C7565732E4F72646572070B6C6F417363656E64696E670C5956616C7565732E4E616D6506034261720D5956616C7565732E4F726465
7207066C6F4E6F6E650000000000000002FFFFFFFF]]>
</Control>
What is really weird is that it seems hit or miss what properties "stick" and not consistent. In one report the legend visibility property will "Stick" and another it won't. One thing that is consistent is that once a property "sticks" it does not appear to every disappear again.
Any help would be much appreciated!
Thank you!
Elizabeth
Legend Overlaping Data
-
- Newbie
- Posts: 11
- Joined: Thu Sep 02, 2010 12:00 am
Legend Overlaping Data
- Attachments
-
- Chart.png (61.08 KiB) Viewed 6948 times
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Legend Overlaping Data
Hi Elizabeth,
Does this occur in a TeeChart application outside ActiveReports? Can you please attach a simple example project we can run "as-is" to reproduce the problem here?
Thanks in advance.
Does this occur in a TeeChart application outside ActiveReports? Can you please attach a simple example project we can run "as-is" to reproduce the problem here?
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: 11
- Joined: Thu Sep 02, 2010 12:00 am
Re: Legend Overlaping Data
Attached is a .Net Visual studio project with the grey line displaying on the right and bottom side of the control like I am seeing in my report.
I was also able to reproduce the legend covering part of the chart data, however I found out that it was because I had the Legend.CustomPosition set to true. Once I set this to false and .Legend.ResizeChart to True it worked great!
I also attached the exe for the Visual studio project incase you can't open the visual studio 2010 project.
I was also able to reproduce the legend covering part of the chart data, however I found out that it was because I had the Legend.CustomPosition set to true. Once I set this to false and .Legend.ResizeChart to True it worked great!
I also attached the exe for the Visual studio project incase you can't open the visual studio 2010 project.
- Attachments
-
- TChartAppWithHardData.zip
- Visual studio project
- (440.64 KiB) Downloaded 602 times
-
- TChartAppBuiltRelease.zip
- Exe built for release
- (211.29 KiB) Downloaded 591 times
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Legend Overlaping Data
Hi Elizabeth,
Thanks for the example project. You just need to set panel's outer bevel to none:
Thanks for the example project. You just need to set panel's outer bevel to none:
Code: Select all
axTChart1.Panel.BevelOuter = TeeChart.EPanelBevel.bvNone;
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: 11
- Joined: Thu Sep 02, 2010 12:00 am
Re: Legend Overlaping Data
Thanks!