Graphs using GraphicsServer
-
On the Y axis of a graph, if the graph starts at 0 and goes to 10000. Is there a way you can force the graph to display the Y values to include a comma so that 10000 renders as 10,000. Thanks
use format string like this: Dim cnt As Integer = 100000 MsgBox(cnt.ToString("###,###,###"))
-
use format string like this: Dim cnt As Integer = 100000 MsgBox(cnt.ToString("###,###,###"))
Thanks for the reply Here is the code that I used to get the formatting I wanted. With .Grid.AxisY .AxisMode = AxisMode.ValueLinear .AxisScale = AxisScaleType.UserDefined .LabelFormatMask = "###,###,###" .GridLinesOn = True .GridLineProperties.Color = Color.DarkGray .MaxAxisValueUser = highest .MinAxisValueUser = 0 .TickMode = TickMode.OnStartAtZero .MajorTickInterval = 5 .MajorTickCount = 0 'If count is nonzero, interval is ignored .LabelProperties.Font = New Font("Tahoma", _ 8, FontStyle.Bold) .LabelProperties.Font.Dispose() End With