开发者

Weirdness with showing values of the type double in MS Chart

开发者 https://www.devze.com 2023-04-12 23:37 出处:网络
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 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

精彩评论

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

关注公众号