Telerik RadChart VS MS Chart

 

Diary1                                                                                                                                                        2010-08-16

 

These few days I am working with the MS Chart and Telerik RadChart. I did a very simple web site to show the test correctness result based on Version, Task, Scenario and Method. In the following step, I am gonna give the performance chart and code coverage Chart. Here are a few pics to show it.

Version

Task

SceMed

The first 2 pics are done by Telerik RadChart. The second one can be got by click the particular version column. The term for this functionality is “Drill Down”. The click event will be captured and encapsulated to ChartClickEventArgs With the object of this class, we can get Series and SeriesItem. Usually we will get the index of the one we are cliking by obj.SeriesItem.Index. Once we get the index, we can get the value of XAxis and YAxis.

There are some useful links, when I am doing this.

First one is about the chart element.

http://www.telerik.com/help/aspnet-ajax/stylingelements.html

This one is about the Drill-Down Feature.

http://demos.telerik.com/aspnet-ajax/chart/examples/functionality/drilldown/defaultcs.aspx

This one is the fancy feature provided by RadChart.

http://demos.telerik.com/aspnet-ajax/chart/examples/newfeatures/zoomingscrolling/defaultcs.aspx

 

The following pic is done by MS Chart. The term for the left pic of the third one is 2D grouped pie chart.  I can click the outer pie slice to reload the right chart. The pie slice has the Exploded=true . I can also click the inner pie slice to reload the right chart. The click event is encapsulated to ImageMapEventArgs . obj.PostBackValue could help to get the PostBackValue of the one you clicked.

Therefore, to make sure this one could work, you have to set the PostBackValue to series. Here is the one statement I used in my case “innerSer.PostBackValue = "D:#LEGENDTEXT:#INDEX";” I want to get the Legendtext and the”D” is a mark for me to specify which series is clicked.


There are not a lot of work when you understand this stuff.

For MS chart, this link is fancy helpful. It gives the simple samples.

http://code.msdn.microsoft.com/mschart

 

For me I do like MS Chart more than RadChart. Maybe I haven’t try the fancy stuff provided by RadChart. Whatever, RadChart is very popular now.

 

Hope this all could help the dummys like me! Welcome to comment.  Plus, I do speak Chinese!

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
这是用Telerik ChartView设计的股票数据采集及分析软件,目前只完成了数据的采集和图形呈现,还没有加入分析功能,采集功能:从网上下载股票数据转换成Excel,导入系统,同时系统根据当前股票交易时间在设定后自动从新浪财经获取数据并实时显示,当要收市时,将最后的一此获取数据添加到K线数据中,这样只需最开始导入一次数据,后面每次在线后,数据会不断添加的K线数据中。 最开始使用的是WPFVisifire呈现,但拖放时卡得不行,换成Telerik后,拖放时如丝般顺滑,看来WPF控件的优化非常重要。 之前的上传 http://download.csdn.net/detail/maiker/9732083可以作废 相对于之前的上传的,这次增加了10种常用的技术指标的算法(主要与同花顺匹配),当导入可添加数据时,自动计算这些指标,但没增加指标的参数化功能,这点可以在程序运行后,通过重新执行某个指标的计算并存入数据库,实现变参数化。 另外这次使用了Telerik的Direct2D呈现图形,由于有庞大的Chart同步,在大数据量的情况下,仍旧不是很流畅,但能忍受,可以考虑一次加载所有数据,然后控制缩放区域,用Telerik的基于图形的缩放,应该会很流畅,比基于数据的拖放应该流畅多了,Telerik有一个这样的例子,测试了一下确实很流畅,但TrallBar的同步没处理好,就没有使用这种方式了
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值