DannE Posted November 13, 2007 Report Share Posted November 13, 2007 please look at the attached screen shot, why does this happen? Quote Link to comment Share on other sites More sharing options...
DannE Posted November 13, 2007 Author Report Share Posted November 13, 2007 What I mean is the bars are not starting from zero. Quote Link to comment Share on other sites More sharing options...
Frank Posted November 13, 2007 Report Share Posted November 13, 2007 Looks like you may be setting ForceZero to false (default is true). If this is not the case please provide the code that reproduces this chart (with data). Quote Link to comment Share on other sites More sharing options...
DannE Posted November 14, 2007 Author Report Share Posted November 14, 2007 Dataset: Country: -0.01Regional vs. : -2.3300000000000001E-2Sector: -4.8300000000000003E-2Price: -6.3200000000000006E-2Revisions: -1.7299999999999999E-2Intra: -5.3900000000000003E-2Valuation: -1.7100000000000001E-2Sector: -0.23310000000000003 code: Chart1.Gallery = SoftwareFX.ChartFX.Gallery.Bar; Chart1.Titles[0].Text = title; Chart1.BackColor = System.Drawing.Color.White; //chModContribution.SerLegBox = true;Chart1.PointLabels = true;Chart1.AxisX.Visible= false; Chart1.AxisY.LabelsFormat.CustomFormat = "0.0%"; Chart1.PointLabelMask = "%L \n %v"; Chart1.BorderObject.Color = System.Drawing.Color.Black; Chart1.ImgQuality = 100; Chart1.AxesStyle = SoftwareFX.ChartFX.AxesStyle.Math; Chart1.AxisX.Line.Color = Color.Transparent;Chart1.PointLabelFont = new System.Drawing.Font("Arial", 7); Chart1.PointLabelColor = System.Drawing.Color.Black; Chart1.ImgSizeable = true; Quote Link to comment Share on other sites More sharing options...
Frank Posted November 14, 2007 Report Share Posted November 14, 2007 I see. I was trying with Chart FX 7. Add the following two lines of code after you pass the data to your chart: if (chart1.AxisY.Max < 0) chart1.AxisY.Max = 0; Quote Link to comment Share on other sites More sharing options...
DannE Posted November 14, 2007 Author Report Share Posted November 14, 2007 added the two lines of code getting a weird graph, please take a look. Quote Link to comment Share on other sites More sharing options...
Frank Posted November 14, 2007 Report Share Posted November 14, 2007 This is not what I get. Are you doing this AFTER you pass the data to the chart? If you are, please post a VS project that reproduces the problem. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.