Narasimha Posted November 5, 2008 Report Share Posted November 5, 2008 Hi, Iam using ChartFx Crosstab provider for below data which comes in datatable Date Total Hours GenPump 10/10/2008 48 Gen Number of Hours10/24/2008 24 Gen Number of Hours and Iam using the following code to generate the graph Dim dt As DataTableProviderDim cfxCT As CrosstabDataProvider chrtOOS.Gallery = Gallery.Bar dt = New DataTableProvider(dst.Tables(0)) cfxCT = New CrosstabDataProvider(dt) chrtOOS.AxisX.LabelsFormat.Format = AxisFormat.DateTime chrtOOS.AxisX.LabelsFormat.CustomFormat = "M/d" chrtOOS.DataSourceSettings.Fields.Add(New FieldMap("GenPump", FieldUsage.ColumnHeading))chrtOOS.DataSourceSettings.Fields.Add(New FieldMap("TotalHours", FieldUsage.Value)) chrtOOS.DataSourceSettings.Fields.Add(New FieldMap("Date", FieldUsage.RowHeading)) chrtOOS.DataSource = cfxCT Iam getting chart displayed with each Date displayed 2 times like "10/10/200810/10/2008" on X-axies for each bar . I want that to displayed only once. Any help would be greatly appreciated. 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.