Jump to content
Software FX Community

labels on x-axis not displaying


User (Legacy)

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...