ChartArea.AxisY.Max does not work

Posted by: toynnus on 23 April 2021, 12:10 am EST

  • Posted 23 April 2021, 12:10 am EST

    Dear . Grapecity team.

    I used c1 chart to draw the graph.

    but ChartArea.AxisY.Max does not work…

    can you help me??

    ======================================================

    gChart.ChartGroups(0).ChartData.SeriesList.Clear()

    gChart.ChartGroups(0).ChartData.SeriesList.RemoveAll()

                gChart.BorderStyle = BorderStyle.None
                gChart.Style.BackColor = Color.White
                gChart.ChartArea.AxisY.AutoMax = False
                gChart.ChartArea.AxisY.Max = 30
                gChart.ChartArea.AxisY.Min = 0
    
    
                Dim cds1 As ChartDataSeries = gChart.ChartGroups(0).ChartData.SeriesList.AddNewSeries()
                cds1.LineStyle.Color = Color.Red
                cds1.LineStyle.Thickness = THICKNESS
                cds1.LineStyle.Pattern = LinePatternEnum.Solid
                cds1.SymbolStyle().Size = SYMBOL_SIZE
                cds1.SymbolStyle().Color = Color.Red
                cds1.SymbolStyle().OutlineColor = Color.Red
                cds1.SymbolStyle().Shape = SymbolShapeEnum.Diamond
                cds1.FitType = FitTypeEnum.Spline
                cds1.Label = "Value 1"                                    '
    
    
                cds1.Y.Clear()
                cds1.X.Clear()
                cds1.X.CopyDataIn(chart_day.ToArray())
                cds1.Y.CopyDataIn(chart3_value.ToArray())
    
  • Posted 23 April 2021, 12:30 am EST

    I am using C1.Win.C1Chart.2 version.

    please tell me how to fix it in this version

  • Posted 23 April 2021, 5:34 am EST

    Hi Sungtae,

    Thank you for sharing the code snippet.

    However the same is working fine at our end. We have tested it with the build ‘2.0.20211.492’ and Axis Max is set as expected. Please refer to the attached sample for the same. (see AxisMax.zip)

    In case you are doing something specific, Could you please make the necessary changes in the attached sample to replicate this behavior? And also if possible could you please try the same with the latest build?

    Best Regards,

    Kartik

    AxisMax.zip

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels