可能是表头设定,即每页最上面几行。你再确认一下是不是吧参考ExtJs" />
乔山办公网我们一直在努力
您的位置:乔山办公网 > excel表格制作 > <em>excel</em> 中stacked <em>line</em>

<em>excel</em> 中stacked <em>line</em>

作者:乔山办公网日期:

返回目录:excel表格制作


Single Line Diagrams
单线图

可能是表头设定,即每页最上面几行。你再确认一下是不是吧

参考ExtJs4.0

http://docs.sencha.com/ext-js/4-1/#!/example/charts/StackedBar.html


效果图:


代码如下:

<script type="text/javascript">

    //<![CDATA[

            Ext.require(['Ext.data.*']);

            Ext.require('Ext.chart.*');

            Ext.require(['Ext.Window', 'Ext.fx.target.Sprite', 'Ext.layout.container.Fit', 'Ext.window.MessageBox']);

            Ext.chart.Chart.CHART_URL = '/static/ext-4.1/resources/charts.swf';

            Ext.onReady(function () {

                

            var store = Ext.create('Ext.data.JsonStore', {

                    fields: ['year', 'comedy', 'action', 'drama', 'thriller'],

                    data: [

                            {year: 2005, comedy: 34000000, action: 23890000, drama: 18450000, thriller: 20060000},

                            {year: 2006, comedy: 56703000, action: 38900000, drama: 12650000, thriller: 21000000},

                            {year: 2007, comedy: 42100000, action: 50410000, drama: 25780000, thriller: 23040000},

                            {year: 2008, comedy: 38910000, action: 56070000, drama: 24810000, thriller: 26940000}

                          ]

                });


                var chart = Ext.create('Ext.chart.Chart',{

                        animate: true,

                        shadow: true,

                        store: store,

                        legend: {

                            position: 'right'

                        },

                        axes: [{

                            type: 'Numeric',

                            position: 'bottom',

                            fields: ['comedy', 'action', 'drama', 'thriller'],

                            title: false,

                            grid: true,

                            label: {

                                renderer: function(v) {

                                    return String(v).replace(/(.)00000$/, '.$1M');

                                }

                            }

                        }, {

                            type: 'Category',

                            position: 'left',

                            fields: ['year'],

                            title: false

                        }],

                        series: [{

                            type: 'column',

                            axis: 'bottom',

                            gutter: 80,

                            xField: 'year',

                            yField: ['comedy', 'action', 'drama', 'thriller'],

                            stacked: true,

                            tips: {

                                trackMouse: true,

                                width: 65,

                                height: 28,

                                renderer: function(storeItem, item) {

                                    this.setTitle(String(item.value[1] / 1000000) + 'M');

                                }

                            }

                        }]

                    });

e79fa5e98193e58685e5aeb9363

                Ext.create('Ext.Panel',{

                title:'条形图-柱状图',

                    layout:'fit',

                    width: 600,

                    height: 400,

                    hideBorders: true,

                    renderTo: 'container',

                    items: chart

               });


关键点stacked:true,表示叠加

                

            });

            

          //]]>

</script>



excel stacked line chart

Excel堆积折线图

stacked

英 [stækt] 美 [stækt]
v.堆积( stack的过去式和过去分词 )

堆叠式;书店丽人;堆栈式;堆迭的

chart

英 [tʃɑ:t] 美 [tʃɑ:rt]
n.图表; 航海图; 排行榜
vt.绘制地图; 记录; 记述; 跟踪(进展或发展)

图表;海图;航海图;统计图表
复数:zhidao charts 过去式: charted 过去分词: charted 现在分词: charting 第三人称单数: charts

相关阅读

  • <em>excel</em> 中stacked <em>line</em>

  • 乔山办公网excel表格制作
  • Single Line Diagrams单线图EXCEL系统一共提供了多少种标准图表类型" src="/uploads/tu/729.jpg" style="width: 400px; height: 267px;" />可能是表头设定,即每页最上面几行。你再确认一下是不是吧参考ExtJs
关键词不能为空
极力推荐

ppt怎么做_excel表格制作_office365_word文档_365办公网