User (Legacy) Posted August 26, 2002 Report Share Posted August 26, 2002 Is there a way of modifying the values in a pie chart? I particular what I am looking for is a way of removing the decimal points from the values. Thanks, Stan Link to comment Share on other sites More sharing options...
Software FX Posted August 27, 2002 Report Share Posted August 27, 2002 Yes. Use Chart.AxisY.LabelsFormat to customize these labels. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
Grorange Posted August 21, 2007 Report Share Posted August 21, 2007 What a way to raise up a dead issue, huh? Oh well, here goes... So, I'm new to this new ChartFX stuff, and I've been trying to format my numbers also. I've been looking around a bunch, but there isn't that much support for displaying just 2 decimals. (i.e. the reply for the original question was not.. lets say complete, and the formatting examples in the documentation only covers Scientific Notation and date formatting) So, here is what I've attempted and am only getting results with 3 decimals showing (which seems to be the standard format...) CultureInfor ci = new CultureInfor("en-us");ci.NumberFormat.NumberNegativePattern = 2;Chart TheChart = new Chart();//TheChart.AxisX.LabelsFormat.FormatNumber(1.0);TheChart.AxisX.LabelsFormat.Decimals = 2;TheChart.AxisX.LabelsFormat.Format = AxisFormat.Number; Thank you for your help in advance.Grorange Link to comment Share on other sites More sharing options...
Frank Posted August 21, 2007 Report Share Posted August 21, 2007 You are using AxisX, you should be using AxisY Link to comment Share on other sites More sharing options...
Grorange Posted August 21, 2007 Report Share Posted August 21, 2007 Well, nevermind. I'm an idiot. Don't worry, my co-workers have already taken me in the back and beaten me for this. So, my requirements are different. We need to use decimal points for the x-axis values. However, ChartFX only allows integer values on the X axis. So I have to use labels instead and print the decimal representative of the number we are actually using. This complicates things because now we have 2 layers of numbers, the index and the represented value. Because this doesn't directly apply here, I'll create a new thread to address my questions. Thanks anyway,Grorange Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.