This project is read-only.

Right vertical axis: Caption and scale, YAxis display value

Topics: General
Aug 6, 2012 at 7:06 PM

I am using version 1.32. 

Q1. Is there a way to place a caption on the right vertical axis, similar to .YAxis.Caption?

Q2. I am using a .MinValue=112 and .MaxValue=130 for the YAxis and they are scaling properly.  However, the values are showing as **.*. 

Q3. The right vertical axis is not scaling properly.  Values range from 0.30 to 18.49 but the right scale shows from 10.0 to 20.0.

Any help or direction would be appreciated

Thanks.

Dennis Schuette


All the property values are listed below:

LOCAL loChart as FoxCharts OF "FoxCharts.vcx"
m.loChart = CREATEOBJECT("FoxCharts")
WITH loChart
   .AlphaChannel = 255
   .Area3dTop = .T.
   .AreaDrawBorders = .T.
   .AxisAlpha = 200
   .AxisColor = RGB(240,240,240)
   .BackColor = RGB(240,240,240)
   .BackColor2 = .F.
   .BackColorAlpha = 255
   .BackGradientMode = 0
   .BarLegendDirection = 2
   .BarLegendType = 0
   .BarsPerScale = 2
   .BarsSpaceBetween = 15
   .BarType = 0
   .BrushType = 2
   .ChangeColorOnMouse = .F.
   .ChartRow = 1
   .ChartsCount = 4
   .ChartType = 18
   .ColorType = 1
   .Depth = 0
   .DonutRatio = 0.50
   .FieldAxis2 = 'Legend'
   .FieldColor = ''
   .FieldDetachSlice = ''
   .FieldHideSlice = ''
   .FieldLegend = 'Legend'
   .FontName = 'Verdana'
   .ForeColor = RGB(0,0,0)
   .GradientInvertColors = .F.
   .Gradientlevel = 5
   .GradientPosition = 0.6
   .GradientShapeDirection = 0
   .GradientType = 0
   .Height = 580
   .LegendHideWhenNull = .T.
   .LegendPosition = 3
   .LineCaps = .F.
   .LineCapsShape = .F.
   .LINEIGNORENULLS = .F.
   .Margin = 4
   .MarginBottom = 25
   .MarginLeft = 5
   .MarginRight = 0
   .MarginTop = 0
   .MaxValue = 130
   .MinNumberScaleLegends = 5
   .MinValue = 112
   .MultiChart = .T.
   .MultiChartMargin = .T.
   .OldStyleProperties = .F.
   .PieCompensateAngles = .T.
   .PieDetachAnimationSteps = 3
   .PieDetachPixels = 30
   .PieDetachSliceOnClick = .T.
   .PieDetachSliceOnLegendClick = .F.
   .PieDirection = 0
   .PieEnhancedDrawing = .T.
   .PieForceCircle = .F.
   .PieGradCenterAngle = 0
   .PieGradCenterDistance = 0
   .PieLegendDistance = 0.75
   .PieShowPercent = .T.
   .PointShapeWidth = 2
   .QualityCompositing = 1
   .QualitySmoothing = 4
   .QualityTextRenderingHint = 4
   .Scale = 0
   .ScaleAutoFormat = .T.
   .ScaleBackAlpha = 128
   .ScaleBackBarsType = 1
   .ScaleBackColor = RGB(242,242,242)
   .ScaleBackLinesDash = 0
   .ScaleBackLinesType = 1
   .ScaleBackLinesWidth = 1
   .ScaleDivider = 1
   .ScaleLineColor = RGB(128,128,128)
   .ScaleLineZeroColor = RGB(0,0,0)
   .SelectedShapeColor = RGB(128,128,128)
   .Shadow = .F.
   .ShapeLegendExpression = ''
   .ShapeMousePointer = 15
   .ShowAxis = .T.
   .ShowAxis2Tics = .F.
   .ShowLineZero = .T.
   .ShowPercentages = .F.
   .ShowScale = .T.
   .ShowSideLegend = .T.
   .ShowTips = .T.
   .ShowValuesOnShapes = .F.
   .ShowValueZero = .T.
   .SourceAlias = 'curGraphData'
   .TicLength = 5
   .Width = 1013
   WITH .AxisLegend2
       .Alignment = 2
       .BackColor = RGB(240,240,240)
       .BackColorAlpha = 0
       .FontBold = .F.
       .FontCharSet = 1
       .FontItalic = .F.
       .FontName = 'Verdana'
       .FontSize = 7
       .FontUnderline = .F.
       .ForeColor = RGB(0,0,0)
       .ForeColorAlpha = 255
       .Format = ''
       .Rotation = 270
       .RotationCenter = 0
   ENDWITH
   WITH .ScaleLegend
       .Alignment = 2
       .BackColor = RGB(240,240,240)
       .BackColorAlpha = 0
       .FontBold = .F.
       .FontCharSet = 1
       .FontItalic = .F.
       .FontName = 'Verdana'
       .FontSize = 7
       .FontUnderline = .F.
       .ForeColor = RGB(0,0,0)
       .ForeColorAlpha = 255
       .Format = ''
       .Rotation = 0
       .RotationCenter = 0
   ENDWITH
   WITH .ShapeLegend
       .Alignment = 2
       .BackColor = RGB(240,240,240)
       .BackColorAlpha = 0
       .FontBold = .F.
       .FontCharSet = 1
       .FontItalic = .F.
       .FontName = 'Verdana'
       .FontSize = 9
       .FontUnderline = .F.
       .ForeColor = RGB(0,0,0)
       .ForeColorAlpha = 255
       .Format = ''
       .Rotation = 0
       .RotationCenter = 0
   ENDWITH
   WITH .SideLegend
       .Alignment = 0
       .BackColor = RGB(240,240,240)
       .BackColorAlpha = 0
       .FontBold = .F.
       .FontCharSet = 1
       .FontItalic = .F.
       .FontName = 'Verdana'
       .FontSize = 9
       .FontUnderline = .F.
       .ForeColor = RGB(0,0,0)
       .ForeColorAlpha = 255
       .Format = ''
       .Rotation = 0
       .RotationCenter = 0
   ENDWITH
   WITH .SubTitle
       .Alignment = 2
       .BackColor = RGB(240,240,240)
       .BackColorAlpha = 0
       .Caption = '08/08/2011 to current  (Version: FoxCharts v1.32a BETA)
    MinValue=112
    MaxValue=130'
       .FontBold = .T.
       .FontCharSet = 1
       .FontItalic = .F.
       .FontName = 'Verdana'
       .FontSize = 11
       .FontUnderline = .F.
       .ForeColor = RGB(0,0,0)
       .ForeColorAlpha = 255
       .Format = ''
       .Rotation = 0
       .RotationCenter = 0
   ENDWITH
   WITH .Title
       .Alignment = 2
       .BackColor = RGB(240,240,240)
       .BackColorAlpha = 0
       .Caption = 'Market Averages'
       .FontBold = .T.
       .FontCharSet = 1
       .FontItalic = .F.
       .FontName = 'Verdana'
       .FontSize = 16
       .FontUnderline = .F.
       .ForeColor = RGB(0,128,255)
       .ForeColorAlpha = 255
       .Format = ''
       .Rotation = 0
       .RotationCenter = 0
   ENDWITH
   WITH .XAxis
       .Alignment = 2
       .BackColor = RGB(240,240,240)
       .BackColorAlpha = 0
       .Caption = 'Date, Steer Head'
       .FontBold = .T.
       .FontCharSet = 1
       .FontItalic = .F.
       .FontName = 'Verdana'
       .FontSize = 10
       .FontUnderline = .F.
       .ForeColor = RGB(0,0,0)
       .ForeColorAlpha = 255
       .Format = ''
       .Rotation = 0
       .RotationCenter = 0
   ENDWITH
   WITH .YAxis
       .Alignment = 2
       .BackColor = RGB(240,240,240)
       .BackColorAlpha = 0
       .Caption = 'USDA Averages Steer Price (left), Spread (right)'
       .FontBold = .T.
       .FontCharSet = 1
       .FontItalic = .F.
       .FontName = 'Verdana'
       .FontSize = 10
       .FontUnderline = .F.
       .ForeColor = RGB(0,0,0)
       .ForeColorAlpha = 255
       .Format = ''
       .Rotation = 270
       .RotationCenter = 0
   ENDWITH
   WITH .Fields(1)
       .AXISINDEX = 1
       .Color = RGB(0,255,0)
       .FieldValue = 'Chart1'
       .Legend = 'Steer/cwt'
   ENDWITH
   WITH .Fields(2)
       .AXISINDEX = 2
       .Color = RGB(0,0,255)
       .FieldValue = 'Chart2'
       .Legend = 'Spread/cwt'
   ENDWITH
   WITH .Fields(3)
       .AXISINDEX = 1
       .Color = RGB(0,255,0)
       .FieldValue = 'Chart3'
       .Legend = 'Steer avg= 120.49'
   ENDWITH
   WITH .Fields(4)
       .AXISINDEX = 2
       .Color = RGB(0,0,255)
       .FieldValue = 'Chart4'
       .Legend = 'Spread avg= 10.03'
   ENDWITH

    loChart.DrawChart()
ENDWITH