Vertical major grid lines display

Thread is closed for posting
3 posts, 0 answers
  1. prayag ganoje
    prayag ganoje avatar
    127 posts
    Member since:
    Feb 2010

    Posted 24 May 2011 Link to this post

    Hello,

    I am using radchart with Skin = "Vista"

    This skin shows only horizontal major grid lines. But I also widh to display vertical major grid lines with this skin. How to explicitly display the vertical major grid lines ?
  2. Gimmik
    Gimmik avatar
    170 posts
    Member since:
    May 2011

    Posted 24 May 2011 Link to this post

    Hi Prayag,

    This article will show you how to display major gridlines on the X-Axis for a RadChart.
    http://www.telerik.com/help/aspnet-ajax/radchart-gridlines.html

    Hope this helps,
    -Gimmik
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. prayag ganoje
    prayag ganoje avatar
    127 posts
    Member since:
    Feb 2010

    Posted 24 May 2011 Link to this post

    Thanks Gimmik for the quick response.

    I have already adde your suggested code but it did not help.

    rc_CSMD_Average_Response_Time.PlotArea.XAxis.Appearance.MajorGridLines.Visible = True
                rc_CSMD_Average_Response_Time.PlotArea.XAxis.Appearance.MajorGridLines.PenStyle = Drawing2D.DashStyle.Dash
                rc_CSMD_Average_Response_Time.PlotArea.XAxis.Appearance.MajorGridLines.Color = Color.DarkGray
                rc_CSMD_Average_Response_Time.PlotArea.YAxis.Appearance.MajorGridLines.Visible = True
                rc_CSMD_Average_Response_Time.PlotArea.YAxis.Appearance.MajorGridLines.PenStyle = Drawing2D.DashStyle.Dash
                rc_CSMD_Average_Response_Time.PlotArea.YAxis.Appearance.MajorGridLines.Color = Color.DarkGray
                rc_CSMD_Average_Response_Time.PlotArea.Appearance.Border.Visible = False
                rc_CSMD_Average_Response_Time.Appearance.Border.Visible = False
                rc_CSMD_Average_Response_Time.Height = System.Web.UI.WebControls.Unit.Pixel(255)
                rc_CSMD_Average_Response_Time.Width = System.Web.UI.WebControls.Unit.Pixel(255)
                rc_CSMD_Average_Response_Time.Appearance.Border.Color = System.Drawing.ColorTranslator.FromHtml("#4C4C4C")
                rc_CSMD_Average_Response_Time.SeriesOrientation = ChartSeriesOrientation.Vertical
                rc_CSMD_Average_Response_Time.PlotArea.XAxis.Appearance.TextAppearance.TextProperties.Color = System.Drawing.ColorTranslator.FromHtml("#4C4C4C")
                rc_CSMD_Average_Response_Time.PlotArea.YAxis.Appearance.TextAppearance.TextProperties.Color = System.Drawing.ColorTranslator.FromHtml("#4C4C4C")
    rc_CSMD_Average_Response_Time.PlotArea.YAxis.AxisLabel.Visible = True
                rc_CSMD_Average_Response_Time.AutoLayout = True
                rc_CSMD_Average_Response_Time.IntelligentLabelsEnabled = True
                rc_CSMD_Average_Response_Time.ChartTitle.Visible = False
                rc_CSMD_Average_Response_Time.Legend.Visible = False
                rc_CSMD_Average_Response_Time.PlotArea.XAxis.AutoScale = False
                rc_CSMD_Average_Response_Time.Skin = "Vista"
                rc_CSMD_Average_Response_Time.PlotArea.Appearance.FillStyle.MainColor = Color.White
                rc_CSMD_Average_Response_Time.PlotArea.Appearance.FillStyle.SecondColor = Color.White
                rc_CSMD_Average_Response_Time.PlotArea.Appearance.FillStyle.FillType = Styles.FillType.Gradient
                rc_CSMD_Average_Response_Time.Appearance.FillStyle.MainColor = Color.White
                rc_CSMD_Average_Response_Time.Appearance.FillStyle.SecondColor = Color.White
                rc_CSMD_Average_Response_Time.Appearance.FillStyle.FillType = Styles.FillType.Gradient
                rc_CSMD_Average_Response_Time.PlotArea.YAxis.AxisMode = ChartYAxisMode.Extended
Back to Top