在C#.net中绘制图表 [英] Draw chart in C#.net

查看:53
本文介绍了在C#.net中绘制图表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Ajex.aspx.vb" Inherits="Ajex" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
    <link href="Scripts/jqplot/jquery.jqplot.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="Scripts/jqplot/jquery.jqplot.css" />
    <link rel="stylesheet" type="text/css" href="Scripts/jqplot/jquery.jqplot.min.css" />

    <script src="Scripts/jqplot/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="Scripts/jqplot/jquery.jqplot.min.js"></script>
    <script language="javascript" type="text/javascript" src="Scripts/jqplot/plugins/jqplot.barRenderer.min.js"></script>

</head>
<body>
    <form id="form1" runat="server">
    <div id="chartdiv" style="margin-top:20px; margin-left:20px; width:300px; height:300px;"></div>
    <script>
        $.jqplot('chartdiv',  [[34.53, 56.32, 25.1, 18.6]], {series:[{renderer:$.jqplot.BarRenderer}]});
    </script>
    </form>
</body>
</html>





以上绘制图表代码但是当我运行应用程序时不绘制。我不知道什么是问题。我使用jqplot api for draw chart.please如果你知道,请给我答案。



Above code for draw chart But not draw when i run application .i don not know what is problem.i use jqplot api for draw chart.please give me answer if you are know.

推荐答案

.jqplot(' chartdiv',[[34.53,56.32,25.1,18.6]],{series:[{renderer:
.jqplot('chartdiv', [[34.53, 56.32, 25.1, 18.6]], {series:[{renderer:


.jqplot.BarRenderer}]} );
< / script >
< / form >
< / body >
< / html >
.jqplot.BarRenderer}]}); </script> </form> </body> </html>





以上绘制图表的代码但是当我运行应用程序时不绘制。我不知道什么是问题。我使用jqplot api绘制图表。如果你知道,请给我答案。



Above code for draw chart But not draw when i run application .i don not know what is problem.i use jqplot api for draw chart.please give me answer if you are know.


你可以切换到谷歌排行榜,它们是最好的和动态的。

https://developers.google.com/chart / [ ^ ]
You may switch to google charts, they are the best and dynamic.
https://developers.google.com/chart/[^]


这篇关于在C#.net中绘制图表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆