[英]how to Set Minimum and maximum values for column charts in asp.net chart item control
我的圖表控件有問題
問題:我在繪制圖表時如何動態更改圖表的軸? 我想調整軸,以使x軸最小值是我想要用它開始圖表並關閉直到最大值我需要的值。
僅供參考,我正在使用的圖表類型為COLUMN。
所以,請告訴我我應該如何嘗試..?
我嘗試動態設置最小和最大屬性,但它們僅采用雙精度類型,但是根據要顯示的數據,我是什么日期類型。
先感謝您
請盡可能將您的答案發送至rajekasani05@gmail.com
thnx RK
您可以將點集合綁定到DateTime列表或任何您想要的東西:
IList<DateTime> listx = new List<DateTime>();
IList<double> listy = new List<double>();
//iterate and add your values to the two lists: listx and listy
//when you're done, bind the lists to the points collection
yourSeries.Points.DataBindXY(listx, listy);
希望這可以幫助 :)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.