如何創建3D餅圖? -Asp.net MVC

[英]How do I create 3D pie chart? -Asp.net MVC


I have seen Microsoft charting control @ here and here.

我在這里和這里看過微軟圖表控制@。

It has good demonstration for displaying bar chart in MVC.

它有很好的演示,可以在MVC中顯示條形圖。

On scottgu's blog There are plenty of examples but they are using server controls (i.e <asp:CHRT runat"server">. This is also supported in MVC by Modifying web.config.

在scottgu的博客上有很多例子,但是他們使用的是服務器控件(即 。通過修改web.config在MVC中也支持這一點。

but as we should avoid using server control as postback is not supported in MVC, we should render it as shown in "without code behind page" example.

但是因為我們應該避免使用服務器控件,因為MVC不支持回發,我們應該按照“無代碼后頁”示例中的說明進行渲染。

Exactly like This Question.

完全像這個問題。

Now I would like to know how other chart types (like pie chart) can be created in controller?

現在我想知道如何在控制器中創建其他圖表類型(如餅圖)?

3 个解决方案

#1


I like google charts. Just write a HTMLHelper to render the correct URL.

我喜歡谷歌排行榜。只需編寫HTMLHelper即可呈現正確的URL。

http://code.google.com/apis/chart/

#2


Try using 3rd party flash charting controls like amCharts. They can be configured via a simple XML file and get their data from static or generated XML or CSV files or streams.

嘗試使用像amCharts這樣的第三方閃存圖表控件。它們可以通過簡單的XML文件進行配置,並從靜態或生成的XML或CSV文件或流中獲取數據。

#3


New asp.net charting controls - will they work with MVC (eventually)?

新的asp.net圖表控件 - 他們將與MVC(最終)合作嗎?

Something that was created quite a while ago, but is relevant to this topic.

不久前創建的東西,但與此主題相關。


注意!

本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:https://www.itdaan.com/blog/2009/05/30/72081f8c06192396c0084e112c9d2b24.html



 
粤ICP备14056181号  © 2014-2020 ITdaan.com