Jump to content
Software FX Community

labels on x-axis not displaying


User (Legacy)
 Share

Recommended Posts

I have a trial version of ChartFX98, under BCB 5.0. 

the following code is executed as a setup for the graph. At the end of

the code snippet, I am setting the labels for the x-axis.

I set them, and then print them out via " ResultsMemo->Lines->Add("

label: " + tempstr ); ", and they show up correctly in the ResultsMemo

memo, but the labels never show.

any ideas?

thanks

michael

ICfxAxisPtr pAxis;

pAxis=ChartFX1->Axis->get_Item(AXIS_Y); // see line 3574 of

chartfxlib_tlb.h

pAxis->Decimals = 3;

pAxis->Min = -0.300;

pAxis->Max = 4.000;

pAxis->STEP = 0.250;

//

pAxis=ChartFX1->Axis->get_Item(AXIS_X); // see line 3574 of

chartfxlib_tlb.h

//

pAxis->Decimals = 0;

pAxis->Min = (float)StartWave;

pAxis->Max = (float)EndWave;

pAxis->STEP = (float)WaveIncrement;

pAxis->LabelValue = (float)WaveIncrement;

index = 0;

i=StartWave;

while (index < numPoints)

{

tempstr = IntToStr(i);

pAxis->set_Label((long)i, StringToOleStr(tempstr));

tempstr = pAxis->get_Label((long)i);

ResultsMemo->Lines->Add(" label: " + tempstr );

index++;

i= i + WaveIncrement; // + indexoffset;

}

ChartFX1->Refresh();

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...