beltrams Posted September 22, 2010 Report Share Posted September 22, 2010 Dear Forum, I have a chart with the following binding: <cfx:Chart ... ... ItemsSource="{Binding Path=ReportData, Mode=OneWay}" ... ..."> and the X axis with the format: < cfx:AxisLabelAttributes Format="Date" />I have also the following cross table transformation: <cfx:Chart.DataTransforms> <cfxData:CrosstabTransform RowPath="AxisXColumn" ColumnPath="SeriesColumn" ValuePath="AxisYColumn" /> </cfx:Chart.DataTransforms>ReportData is a List<ChartableReportRow> where ChartableReportRow is a class with the followinf fields: public object AxisXColumn (this return actually DateTime but I need "object" because it is a configurable view model and in some case it return strings)public decimal AxisYColumnpublic object SeriesColumnMy problem is that the format of dates does not take place (they have always time component, my guess is that the chart is actually using them as strings instead ?) If I change public object AxisXColumn into public DateTime AxisXColumn the format take place correctly.Fo you have any suggestion? Quote Link to comment Share on other sites More sharing options...
beltrams Posted September 23, 2010 Author Report Share Posted September 23, 2010 Whe I say that I need "object" because AxisXColumn can be String ot DateTime I meant not at the same time, or they are all DateTime or they are all String, not a mix of the two. Thanks Quote Link to comment Share on other sites More sharing options...
JuanC Posted September 24, 2010 Report Share Posted September 24, 2010 Starting on build 3880 we changed our support for object properties, instead of doing ToString we will wait for the first element and then act according to its type. Please check the version of ChartFX.WPF.dll, if the build number (3rd number) is older than 3880 you can download our most recent hotfix. JuanC Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.