Click here to Skip to main content
16,011,533 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalstring to wstring conversion Pin
5-Jun-02 7:41
suss5-Jun-02 7:41 
GeneralRe: string to wstring conversion Pin
Mike Nordell5-Jun-02 7:57
Mike Nordell5-Jun-02 7:57 
GeneralVC++ XML integration Pin
5-Jun-02 7:31
suss5-Jun-02 7:31 
GeneralRe: VC++ XML integration Pin
Nemanja Trifunovic5-Jun-02 7:48
Nemanja Trifunovic5-Jun-02 7:48 
GeneralError when using EnumObjects function. Pin
redeemer5-Jun-02 7:16
redeemer5-Jun-02 7:16 
GeneralRe: Error when using EnumObjects function. Pin
Cathy6-Jun-02 9:43
Cathy6-Jun-02 9:43 
GeneralMSChart labels Pin
5-Jun-02 5:50
suss5-Jun-02 5:50 
GeneralRe: MSChart labels Pin
Richard Ellis5-Jun-02 20:36
Richard Ellis5-Jun-02 20:36 
G'Day Anon

I may have the answer for you though I'm not 100% sure because I'm yet to get it working myself - but I have run out of time for the moment.

using the example on code project I have added the following code when the GO button is pressed. I have placed it just before the chart is refreshed.

The first bit sets the legend (only did 1 to see if it worked)

CVcPlot Plot = m_Chart.GetPlot();
CVcSeriesCollection SeriesCollection = Plot.GetSeriesCollection();

CVcSeries Series = SeriesCollection.GetItem(1);
Series.SetLegendText(_T("New Text"));

The next bit was to do the labels for each point on the axis. It is incomplete and not quite working but hopefully it will give you an idea and you can let me know how to fix it Smile | :) I am getting a bad function argument error when calling SetColumnLabel or SetRowLabel - something to do with my indexes I think.

CVcDataGrid DataGrid = m_Chart.GetDataGrid();

short i;
CString strLabel;
short nRows = DataGrid.GetRowLabelCount();
short nColumns = DataGrid.GetColumnLabelCount();

/* for (i=0; i
GeneralRe: MSChart labels Pin
Ruca20-Aug-02 1:08
Ruca20-Aug-02 1:08 
GeneralRe: MSChart labels Pin
Ruca20-Aug-02 5:28
Ruca20-Aug-02 5:28 
GeneralRe: MSChart labels Pin
Ruca20-Aug-02 6:43
Ruca20-Aug-02 6:43 
GeneralRe: MSChart labels Pin
Richard Ellis20-Aug-02 13:20
Richard Ellis20-Aug-02 13:20 
QuestionIs there an ActiveX Control like Favorites? Pin
Dov Sherman5-Jun-02 5:01
Dov Sherman5-Jun-02 5:01 
AnswerRe: Is there an ActiveX Control like Favorites? Pin
Tomasz Sowinski5-Jun-02 5:08
Tomasz Sowinski5-Jun-02 5:08 
GeneralRe: Is there an ActiveX Control like Favorites? Pin
Dov Sherman5-Jun-02 5:51
Dov Sherman5-Jun-02 5:51 
GeneralRe: Is there an ActiveX Control like Favorites? Pin
Tomasz Sowinski5-Jun-02 5:53
Tomasz Sowinski5-Jun-02 5:53 
GeneralRe: Is there an ActiveX Control like Favorites? Pin
Dov Sherman5-Jun-02 6:52
Dov Sherman5-Jun-02 6:52 
GeneralHelp!! Pin
chaolong5-Jun-02 4:37
chaolong5-Jun-02 4:37 
GeneralRe: Help!! Pin
Michael P Butler5-Jun-02 5:00
Michael P Butler5-Jun-02 5:00 
GeneralRe: Help!! Pin
chaolong5-Jun-02 4:59
chaolong5-Jun-02 4:59 
GeneralRe: Help!! Pin
Rage5-Jun-02 5:23
professionalRage5-Jun-02 5:23 
GeneralProblem with Creation Pin
Big B5-Jun-02 4:19
Big B5-Jun-02 4:19 
GeneralRe: Problem with Creation Pin
Tomasz Sowinski5-Jun-02 4:36
Tomasz Sowinski5-Jun-02 4:36 
GeneralRe: Problem with Creation Pin
Big B5-Jun-02 4:41
Big B5-Jun-02 4:41 
GeneralRe: Problem with Creation Pin
Tomasz Sowinski5-Jun-02 4:50
Tomasz Sowinski5-Jun-02 4:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.