Information générale
Catégorie:
COM/DCOM et OLE Automation
Hi Stan.
I have been using the excellent material in chapter 6 of the 'MegaFox' book and in the 'MS Office Automation with VFP' book to do some graphing
I hope that you are enjoying the book!
Everything on the graphs looks great except for the ChartTitle and the Legend; in both cases the text characters are squeezed together making it difficult to read.
What you may want to try is to create your own legends and Chart Tiles in the report form and Set oGraph.HasTitle and oGraph.HasLengend to false. That way you have total control over where they are and how they look. You already have the data avaliable to do this. The legend entry labels are either the field names in the underlying cursor or the descriptions in the first column of the data (depending on whether you are plotting the series from the data in the columns or the rows). You can get the color for each series object by accessing oGraph.SeriesCollection( < index > ).Interior.Color
Yes, it means that you have to write more code. But if you keep it generic and use the data that you already have, the good news is that you only have to write it once < s >.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement