CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Threaded View

  1. #1
    Join Date
    Jan 2018
    Posts
    7

    [RESOLVED] MSChart need to remove the Y Axis Tick Marks

    I have a MSChart Control that displays as follows:

    MSChart.jpg
    Code:
    chartMRBDaily.ChartAreas[0].AxisY.MajorGrid.Enabled = false;
    chartMRBDaily.ChartAreas[0].AxisY.MajorTickMark.Enabled = false;
    chartMRBDaily.ChartAreas[0].AxisY.MinorGrid.Enabled = false;
    chartMRBDaily.ChartAreas[0].AxisY.MinorTickMark.Enabled = false;
    As you can see from the code above. I have have tried setting the AxisY MajorGrid and MinorGrids AND MajorTickMark and MinorTickMark to Enabled = false, but that seems to have no affect on the grid mess you see along the Y Axis. Is there some other variables that need to be set to remove all Grids from the Y Axis?
    Last edited by tim8w123; February 13th, 2025 at 04:41 PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured