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
|
<!-- ExtJS -->
<script src="@Url.Content("~/Scripts/ext-4.0.7/ext.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/ext-4.0.7/ext-all.js")" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="@Url.Content("~/Content/ext-4.0.7/resources/css/ext-all.css")" />
<script type="text/javascript">
Ext.onReady(function () {
var dd = new Array();
dd.push({ name: 'Jul 07', visits: 245000, views: 3000000 });
dd.push({ name: 'Aug 07', visits: 240000, views: 3500000 });
dd.push({ name: 'Sep 07', visits: 355000, views: 4000000 });
var store = new Ext.data.JsonStore({
fields: ['name', 'visits', 'views'],
data: dd
});
var lineChart = new Ext.chart.LineChart({
store: store,
xField: 'name',
yField: 'visits'
});
var panel3 = new Ext.panel.Panel({
renderTo: 'ggg',
width: 700,
height: 200,
items: [lineChart]
});
});
</script>
<div id="ggg">
</div> |
Partager