User (Legacy) Posted September 6, 2006 Report Posted September 6, 2006 Hi, I'm trying to setup a graph with two series. Each series is link with two differents X axis that will be merge by chartFx, I hope . I got the folling error : Input string was not in correct format Anyone can help? Thanks My code : object[] allArrays = new object[4]; double[] FirstArray = {1,2,3,4,5}; String[] FirstArrayLabel = {"a","b","c","d","e"}; double[] SecondArray = {6,7,8,9,10}; String[] SecondArrayLabel = {"f","g","h","i","j"}; allArrays[0] = FirstArray; allArrays[1] = FirstArrayLabel ; allArrays[2] = SecondArray; allArrays[3] = SecondArrayLabel; base.DataSourceSettings.Fields.Add(new FieldMap("Field1", FieldUsage.Value)); base.DataSourceSettings.Fields.Add(new FieldMap("Field2", FieldUsage.XValue)); base.DataSourceSettings.Fields.Add(new FieldMap("Field3", FieldUsage.Value)); base.DataSourceSettings.Fields.Add(new FieldMap("Field4", FieldUsage.XValue)); ListProvider lstProvider = new ListProvider(allArrays); base.DataSourceSettings.DataSource = lstProvider; Thanks
Software FX Posted September 7, 2006 Report Posted September 7, 2006 These a labels, NOT X-Values. What do you mean be "merge" ? What are you expecting to see in the chart ? You are setting string labels as X-Values. X-Values need to have an intrinsic value such as number or DateTime. Strings are used for categorical X-Axis (labels) not for X-Values. -- Francisco Padron www.chartfx.com
Recommended Posts
Archived
This topic is now archived and is closed to further replies.