Hi,
Many thanks for the teams help for getting me going on my chart as detailed here http://ko.infragistics.com/community/forums/t/92741.aspx
The team helped provide an example solution that I've now managed to incorporate into my own solution. It looks as follows:
I've adapted the code to use a CategoryDateTimeXAxis for the contact data. What I'd like to do is show date values against the x axis and also close up the white space between the -6 Y axis value and the strokes on the x axis.
I've constructed my x axis as follows but I'm obviously missing something:
Dim categoryX As CategoryDateTimeXAxis = New CategoryDateTimeXAxis() categoryX.DateTimeMemberPath = "ActivityDate" categoryX.DisplayType = TimeAxisDisplayType.Continuous categoryX.LabelExtent = 30 categoryX.LabelsVisible = TruecategoryX.LabelFontSize = 8categoryX.Interval = New TimeSpan(7, 0, 0, 0) categoryX.Label = "ActivityDate" categoryX.DataSource = posContacts categoryX.MajorStroke = Brushes.Transparent categoryX.MinorStroke = Brushes.Transparent categoryX.Stroke = Brushes.Black categoryX.StrokeThickness = 2
Your help, as ever, will be much appreciated.
Many thanks,
Nathan
I've managed to now get the labels displaying.
I added an event handler to the x axis FormatLabel event and formatted my text as below:
Private Function OnAxisXFormatLabel(info As AxisLabelInfo) As String Return info.DateValue.ToString("dd/MM/yyyy") End Function
I also changed the label location to AxisLabelsLocation.OutsideBottom
The labels look fine now, all I need to know is how to remove the whitespace between the chart and the x axis strokes.
Hi Nathan,
I am looking into this for you. I plan to provide you with some sample code that you can add to your project to control the spacing of the axis. Please let me know if you have any more information for me while I am researching.