简体   繁体   English

桩号图表未显示

[英]PIe Chart not displayed

here is my tab's code containing the pie chart 这是我的标签中包含饼图的代码

{
                                xtype: 'container',
                                title: 'Chart',
                                iconCls: 'chart',
                                itemId: 'chart_Tab',
                                layout: {
                                    type: 'fit'
                                },
                                items: [
                                    {
                                        xtype: 'polar',
                                        autoDestroy: false,
                                        colors: [
                                            '#115fa6',
                                            '#94ae0a',
                                            '#a61120',
                                            '#ff8809',
                                            '#ffd13e',
                                            '#a61187',
                                            '#24ad9a',
                                            '#7c7474',
                                            '#a66111'
                                        ],
                                        store: 'elementstore',
                                        series: [
                                            {
                                                type: 'pie',
                                                xField: 'numValue'
                                            }
                                        ],
                                        interactions: [
                                            {
                                                type: 'rotate'
                                            }
                                        ]
                                    }
                                ]
                            },

Problem is, it does show anything, but does not crash either... I checked my store is full of model to display. 问题是,它确实可以显示任何内容,但也不会崩溃。

Here is the output of this chart... All there is is the ''gpl sencha generated label'' no chart at all... so im guessing something is wrong but I cant put my finger on it, + there is absolutly NO working exemple of that from the sencha team... 这是此图表的输出...全部都没有“ gpl sencha生成的标签”,根本没有图表...因此,我猜是有问题的,但是我不能将手指放在上面,+绝对没有sencha小组的工作示例...

Still not working would someone has anny idea on why? 仍然无法正常工作,有人会对为什么有一个保姆想法吗?

输出

Try changing 尝试改变

store: 'elementstore',

To

`store: elementstore,`,
  1. Charts files are not included with the free version of Sencha Touch, nor in the trial version. 图表文件不包含在免费版本的Sencha Touch中,也不包含在试用版中。

  2. If you run it in a local sever (app.html) and not index.html, you won't see anything. 如果您在本地服务器(app.html)而不是index.html上运行它,则将看不到任何内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM