Jump to content
Software FX Community

Point labels

User (Legacy)

Recommended Posts

This approach should give you the chart you want if using ChartFX for .NET 


// Sample Data


chart1.Value[0,0] = 3.00;

chart1.Value[0,1] = 4.0;

chart1.Value[0,2] = 3.5;


// Make sure the min and max are setup correctly, when reading data from a


// the Max could be calculated differently depending on the data so you want

to override it

chart1.AxisY.Min = 0.0;

chart1.AxisY.Max = 4.0;

// This line is the key, it tells ChartFX that the axis labels should be

// displayed as going from 0 - 1 (4.0 * 0.25)

chart1.AxisY.LabelValue = 0.25;

// This is optional. Note that the step is provided in "real" values

chart1.AxisY.Step = 1;

// Show percentages in the Y axis

chart1.AxisY.LabelsFormat.Format = AxisFormat.Percentage;




Software FX Support

"Ajantha Attaluri" <ssriniu@hotmail.com> wrote in message


> Hi,

> I am working on a bar graph series where I want G.P.A of a student to be

> plotted/graphed as 100% for 4.0/4.0, 75% for 3.0/4.0 and so on but the

> point

> labels on each of the bars to show up as 4.0, 3.0 and so on, respectively.

> Is there a way I can manipulate the pointlabel value to reflect this?

> Thanks so much.

> AA



Link to comment
Share on other sites


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

  • Create New...