min_visits_of_day.lview 2.02 KB
Newer Older
Spencer Chang's avatar
Spencer Chang committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: jessen  
    $Date: 2011-9-29 下午3:25:52  
    $Revision: 1.0  
    $Purpose: 
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" trace="true">
    <a:view>
        <a:link id="full_visits_of_day_link" url="${/request/@context_path}/modules/sys/SYS2520/full_visits_of_day.lview"/>
        <script type="text/javascript"><![CDATA[
            function onclick1() {
                new Leaf.Window({
                    id: 'full_visits_of_day',
                    title:'每日访问量',
                    url: /*full_visits_of_day.screen*/$('full_visits_of_day_link').getUrl(),
                    width: 1000,
                    height: 550
                });
            }
            function query1(){
                $('min_visits_of_day_ds').query();
            }
            ]]></script>
        <a:dataSets>
            <a:dataSet id="min_visits_of_day_ds" model="sys.SYS2520.sys_analytics_summary_of_day" pageSize="100" queryDataSet="query_ds">
                <a:fields>
                    <a:field name="day" prompt="日期"/>
                    <a:field name="visits" datatype="float" prompt="visits" type="line"/>
                </a:fields>
            </a:dataSet>
        </a:dataSets>
        <a:screenBody>
            <a:chart bindTarget="min_visits_of_day_ds" style="width: 350px; height: 200px" type="line">
                <a:title text="访问量"/>
                <a:xAxis>
                    <a:xAxi name="day">
                        <a:labels formatter="emptyRenderer"/>
                    </a:xAxi>
                </a:xAxis>
                <a:yAxis>
                    <a:yAxi name="visits">
                        <a:title text=""/>
                        <a:labels formatter="emptyRenderer"/>
                    </a:yAxi>
                </a:yAxis>
                <a:events>
                    <a:event name="click" handler="onclick1"/>
                </a:events>
            </a:chart>
        </a:screenBody>
    </a:view>
</a:screen>