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 

6.2

// Sample Data

chart1.OpenData(COD.Values,1,3);

chart1.Value[0,0] = 3.00;

chart1.Value[0,1] = 4.0;

chart1.Value[0,2] = 3.5;

chart1.CloseData(COD.Values);

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

DB

// 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;

--

Regards,

JC

Software FX Support

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

news:OSut75ynEHA.3352@webserver3.softwarefx.com...

> 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

Archived

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

×
×
  • Create New...