开发者

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"]

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜