Source: http://hi.baidu.com/goga/blog/item/07b3024f61b8cd35aec3ab47.html
Recently I have examined several Statistical Chart Control packages.Zedgraph,Nplot, But in comparisonZedgraphPowerful and convenient. Other products are semi-finished products. More fees are charged, as long as commercial report development tools have the function of statistical charts, Crystal Reports,Activereport,Reporting ServiceBut for convenience, the single function is stillDotnetcharting. The following describesWinformUsageZedgraphAndDotnetcharting.
In terms of EffectDotnetchartingIt is really not said that the crystal effect is very dazzling, which should be its biggest selling point. Examples with various effects are provided to facilitate developers' learning.Code.DotnetchartingWhen generating a Statistical Chart, you need to set a temporary directory to save the image of the generated Statistical Chart,DotnetchartingThe chart works well, largely because it generates an image and then displays it on the interface. Of course, it sacrifices performance at the cost. At the same time, it does not support scaling. Although you can achieve this by changing the scale of the coordinate axis, the performance is much worse.
If you do not have high performance requirements,DotnetchartingIs a good choice.
ZedgraphWhere is the biggest selling point? It should be open-source. You can modify the code to meet your needs. For example:ZedgraphWhen you draw a line chart, the line does not use anti-aliasing, you only need to modifyLineClassDefaultStructure. AndDotnetchartingCompared,ZedgraphThe effect is a little worse. However, if you adjust it well, it is also good,ZedgraphThe advantage is not here.
BecauseZedgraphYesGDI +Directly inCanvasSo the performance is guaranteed. If you change the scale of the coordinate axis, andDotnetcharingCompared,ZedgraphThe response speed is very fast. Based on this,ZedgraphIt provides an important function of scaling and dragging. You can zoom out the chart by clicking the scroll wheel. You can drag the chart by clicking the middle button, which is very convenient.
For real-time trends similar to stock markets,CPUUsage and other real-time change data, useZedgraphIt can also be done conveniently.ZedgraphInPointpairlistPaint, so you only needPointpairlistAdd new data to this set, and then re-draw it. for performance, as mentioned above, it is directly used.GDI +, The performance is good, I tested400Point. So,ZedgraphYou can also deal with the demand with strong real-time requirements.
In general,DotnetchartingThe generated charts have good performance but poor performance, and are not suitable for scenarios with high real-time requirements.ZedgraphOpen-sourceDotnetchartingPoor, but good performance, can adapt to data with real-time requirements.