User (Legacy) Posted August 7, 2006 Report Posted August 7, 2006 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
Software FX Posted August 7, 2006 Report Posted August 7, 2006 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.