码迷,mamicode.com
首页 > 其他好文 > 详细

jqChart动态数据

时间:2015-06-08 11:12:34      阅读:126      评论:0      收藏:0      [点我收藏+]

标签:

<link rel="stylesheet" type="text/css" href="../../css/jquery.jqChart.css" />
    <link rel="stylesheet" type="text/css" href="../../css/jquery.jqRangeSlider.css" />
    <link rel="stylesheet" type="text/css" href="../../themes/smoothness/jquery-ui-1.10.4.css" />
    <script src="../../js/jquery-1.11.1.min.js" type="text/javascript"></script>
    <script src="../../js/jquery.mousewheel.js" type="text/javascript"></script>
    <script src="../../js/jquery.jqChart.min.js" type="text/javascript"></script>
    <script src="../../js/jquery.jqRangeSlider.min.js" type="text/javascript"></script>

 $(document).ready(function () {
            $(‘#jqChart‘).jqChart({
                title: { text: ‘投票信息统计‘ },
                axes: [
                        {
                            type: ‘category‘,
                            location: ‘bottom‘,
                            zoomEnabled: true
                        }
                      ],
                series: [
                            {
								title:‘信息量‘,
                                type: ‘column‘,
                                data: [
								<s:iterator value="voteCountList" id="obj" status="st">
									<s:if test="%{#st.index>0}">
									,
									</s:if>
									[‘<s:property value="infoName"/>‘, <s:property value="ticketNum"/>]
								</s:iterator>
								]
                            },
                        ]
            });
        });


 <div id="jqChart" style="width: 99%; height: 300px;">
	     </div>

  

jqChart动态数据

标签:

原文地址:http://www.cnblogs.com/a757956132/p/4560159.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!