Weirdness with showing values of the type double in MS Chart
I have a datatable which contains a number of double values e.g. 274.6 When i bind to the chart these numbers are shown as 2746 I tried to set the series.YValueType = ChartValueTyp开发者_运维知识库e.Double; But it does nothing..
Try settings the Label formatting in the chart area like this:
theChartArea.AxisX.LabelStyle.Format = "0.0";
theChartArea.AxisY.LabelStyle.Format = "0.0";
Where theChartArea is something like: myChart.ChartArea["me"]
精彩评论