C#图表API GoogleChartSharp
openkk
13年前
<p>GoogleChartSharp 是一个 Google 的图表 API 的 C# 语言封装。</p> <p>示例代码:</p> <pre class="prettyprint"><a name="A_Simple_Example"><span class="kwd">using</span><span class="pln"> </span><span class="typ">GoogleChartSharp</span><span class="pun">;</span><span class="pln"> </span><span class="kwd">int</span><span class="pun">[]</span><span class="pln"> data </span><span class="pun">=</span><span class="pln"> </span><span class="kwd">new</span><span class="pln"> </span><span class="kwd">int</span><span class="pun">[]</span><span class="pln"> </span><span class="pun">{</span><span class="pln"> </span><span class="lit">0</span><span class="pun">,</span><span class="pln"> </span><span class="lit">10</span><span class="pun">,</span><span class="pln"> </span><span class="lit">20</span><span class="pun">,</span><span class="pln"> </span><span class="lit">30</span><span class="pun">,</span><span class="pln"> </span><span class="lit">40</span><span class="pln"> </span><span class="pun">};</span><span class="pln"> </span><span class="typ">LineChart</span><span class="pln"> chart </span><span class="pun">=</span><span class="pln"> </span><span class="kwd">new</span><span class="pln"> </span><span class="typ">LineChart</span><span class="pun">(</span><span class="lit">150</span><span class="pun">,</span><span class="pln"> </span><span class="lit">150</span><span class="pun">);</span><span class="pln"> chart</span><span class="pun">.</span><span class="typ">SetData</span><span class="pun">(</span><span class="pln">data</span><span class="pun">);</span><span class="pln"> </span><span class="kwd">string</span><span class="pln"> url </span><span class="pun">=</span><span class="pln"> chart</span><span class="pun">.</span><span class="typ">GetUrl</span><span class="pun">();</span></a></pre> <p><strong>项目主页:</strong><a href="http://www.open-open.com/lib/view/home/1322838989468" target="_blank">http://www.open-open.com/lib/view/home/1322838989468</a></p>