Smartie Posted February 5, 2010 Report Share Posted February 5, 2010 Hey, I have an chart with several series, the chart is set to stack to 100%. Is it possible to get the point lables to display the % that series plot takes up of the full 100% instead of the value? Thanks Leah Quote Link to comment Share on other sites More sharing options...
Frank Posted February 5, 2010 Report Share Posted February 5, 2010 Yes. Use chart.AllSeries.PointLabels.Format to control what gets displayed. See docs. for details. Quote Link to comment Share on other sites More sharing options...
CarlosAC Posted February 5, 2010 Report Share Posted February 5, 2010 Hi Smartie In order to get the point lables to display the percentage that series plot takes up of the full 100% instead of the value, please check following code: chart1.AllSeries.PointLabels.Format = "%P %%"; -- Pipon Quote Link to comment Share on other sites More sharing options...
Smartie Posted February 5, 2010 Author Report Share Posted February 5, 2010 Excellent, thank you. Quote Link to comment Share on other sites More sharing options...
Smartie Posted February 10, 2010 Author Report Share Posted February 10, 2010 Hey, Here is the chart I have made using the above help: Why don't all the stack totals add up to 100%? Some are 99%, others 101%? Thanks Quote Link to comment Share on other sites More sharing options...
CarlosAC Posted February 10, 2010 Report Share Posted February 10, 2010 Hi Smartie Please try setting the DataFormat.Decimals property as follow: chart1.AxisY.DataFormat.Decimals = 2; -- Pipon 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.