LianZA Posted July 3, 2008 Report Share Posted July 3, 2008 Hi I'm currently binding to a Datatable's rows property as follows: (this works 100% for line and area charts) Dim series2 As New SeriesAttributes series2.ItemsSource = tbl.Rows series2.Gallery = Gallery.Bar series2.BindingPath = "CUM_BM_RET" series2.BindingPathX = "DATE" Chart1.Series.Add(series2) X axis labels turns out fine but no data is shown, just an empty chart If i dont set the "BindingPathX property on the series, but set the BindingPath property on AxisX.Label : Chart1.AxisX.Labels.BindingPath = "DATE" The chart and labels display correctly, except setting the format or custom format has no effect on the labels Chart1.AxisX.Labels.Format = AxisFormat.Date Chart1.AxisX.Labels.CustomFormat = "yyyy/MM/dd" The labels are still shown in full date time format ("2008/01/31 12:00:00 AM") What is the correct way to this? I'm using build 0.8.3091.27388 Quote Link to comment Share on other sites More sharing options...
daviddam Posted July 3, 2008 Report Share Posted July 3, 2008 I am having the exact same problem! I know this reply isn't helpful, I just want to make sure the SoftwareFX team is aware that more than one person is having this problem. Quote Link to comment Share on other sites More sharing options...
LianZA Posted July 3, 2008 Author Report Share Posted July 3, 2008 Hi David, As a work around, try iterating through the labels collection and set each label's formatting manually, this seems to work. Quote Link to comment Share on other sites More sharing options...
JuanC Posted July 3, 2008 Report Share Posted July 3, 2008 We have fixed this issue in our internal build so either the Labels.Format/CustomFormat will be honored when reading date labels as strings. Please send a message to wpf at softwarefx dot com to request a hotfix. Regards, JuanC Quote Link to comment Share on other sites More sharing options...
daviddam Posted July 8, 2008 Report Share Posted July 8, 2008 Thank you LianZA and JuanC. I have requested the latest hotfix. 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.