Jump to content
Software FX Community

whats goin wrong ????!!!!!1


User (Legacy)

Recommended Posts

Posted

when i bind the Chart Fx to the datatable every things goos well but when i 

map the fields i want the Xvalue is rownded any Idea

ps: am binding at run time

this is my Code

/MyChart.DataSourceSettings.Fields.Clear();

//MyChart.DataSourceSettings.Fields.Add(new FieldMap("ClientNumber",

FieldUsage.XValue));

//MyChart.DataSourceSettings.Fields.Add(new FieldMap("BalanceCVUSD",

FieldUsage.Value));

//MyChart.DataSourceSettings.Fields.Add(new FieldMap("AuthorizationCVUSD",

FieldUsage.Value));

MyChart.DataSource = chartDt.DefaultView;

if i un comment the Xvalu is rownded

Posted

The X-Value is not rounded, the X-Axis is displaying 0 decimals, that's all 

the value is there. Simply set:

chart.AxisX.LabelsFormat.Decimals = 2; // or anything more than zero

--

Francisco Padron

www.chartfx.com

Archived

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

×
×
  • Create New...