I had labels turned on my Pie chart, but didn't like the look a few days ago, so I shut them off. But now that I know I can't scroll the Legend if slices are cut off in the Legend, I figured I would give the user the choice of turning them on or off.
But now, the only way I can get labels to show is in design mode when I set the chart to Random rather than the database. Once I choose Database, set my values and run the application, labels never come back on.
2 part question. Can you reproduce this using a database on your side? How can I implement turning on and off labels in code? Maybe it has something to do with the saving of the properties in design mode.
Labels missing from Pie Chart with version .20
Re: Labels missing from Pie Chart with version .20
Hello,
I can connect a database to a TPieSeries in a TDBChart and toggle the marks visibility normally.
See the test project attached:
I can connect a database to a TPieSeries in a TDBChart and toggle the marks visibility normally.
See the test project attached:
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Labels missing from Pie Chart with version .20
The DB is encrypted. Could I get the conditionals, please?
Re: Labels missing from Pie Chart with version .20
I figured out why this is happening. I make changes to the Master View, but they are not being honored in the Windows or the OSX view unless I make the changes there too.
I made a mistake when originally creating the app. I have always used a DataModule in all of my programs with Datasets. But I couldn't figure out how to do this when I start coding in Berlin, so my main form holds all datasets. I have had a problem in the past where I deactivate a Query in design mode, but it stays active in the Windows and OSX views.
This is kind of what is happening here and I don't know how to fix it other than going to each view and making the same changes I have made in the Master View if they aren't being honored in the other views.
I had to make marks visible and adjust the callouts for all 3 views. This isn't right. How can I somehow make the Windows and OSX desktop views honor changes I make to the chart in the Master View?
I made a mistake when originally creating the app. I have always used a DataModule in all of my programs with Datasets. But I couldn't figure out how to do this when I start coding in Berlin, so my main form holds all datasets. I have had a problem in the past where I deactivate a Query in design mode, but it stays active in the Windows and OSX views.
This is kind of what is happening here and I don't know how to fix it other than going to each view and making the same changes I have made in the Master View if they aren't being honored in the other views.
I had to make marks visible and adjust the callouts for all 3 views. This isn't right. How can I somehow make the Windows and OSX desktop views honor changes I make to the chart in the Master View?
Re: Labels missing from Pie Chart with version .20
I read this on Embarcadero's site. Hope it helps.
Restoring the Property Values of a Component from Master
To restore the property values from the Master view on a component of another view:
Select the candidate view from the View Selector.
On the Form Designer, right-click the target component.
Select Revert to Inherited from the context menu.
Re: Labels missing from Pie Chart with version .20
Hello,
I'm glad to hear you found the root of the problem and how to solve it!
"TeeChart Pro Database" has blank user and password.realsol wrote:The DB is encrypted. Could I get the conditionals, please?
I'm glad to hear you found the root of the problem and how to solve it!
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |