Jump to content
Software FX Community

X axis label shifts to the left when window maximized


Recommended Posts

When chart is maximized the date on x Axis shifts to the left.  Below is the chart property settings.

 With Me.RollingPerformanceChart
            .ToolTipFormat = "%L"
            '.Titles(0).Text = "Performance"

            .AxisX.LabelsFormat.CustomFormat = "MMM-yyy"

            .AxisX.LabelsFormat.Format = AxisFormat.Date

            .AllSeries.PointLabels.LineAlignment = System.Drawing.StringAlignment.Center
            Dim SeriesAttributes1 As ChartFX.WinForms.SeriesAttributes = New ChartFX.WinForms.SeriesAttributes()

            'CC# 24
            SeriesAttributes1.PointLabels.Alignment = System.Drawing.StringAlignment.Center

            .Series.AddRange(New ChartFX.WinForms.SeriesAttributes() {SeriesAttributes1})

            .AxisX.LabelAngle = 90

            .AllSeries.PointLabels.Format = "%L"
            .AxisY.DataFormat.Decimals = 0
            .AxisY.LabelsFormat.Format = AxisFormat.Currency
            .AxisY.Min = minValue * 1.5
            .AxisY.Max = maxValue * 1.2
            .AllSeries.Visible = True

            .AxisY.AutoScale = True

            .AxisX.AutoScale = True

        End With



Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...