Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vb.net/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Extjs4 如果没有数据extjs,如何将空文本消息设置为图表_Extjs4 - Fatal编程技术网

Extjs4 如果没有数据extjs,如何将空文本消息设置为图表

Extjs4 如果没有数据extjs,如何将空文本消息设置为图表,extjs4,Extjs4,我已经使用Ext.create('Ext.chart.chart')在ExtJS4中创建了一个图表,如果存储区是空的,我会在图表中显示一个空文本消息,例如“无数据”。您能帮我一下吗?您可以使用类似于中讨论的技术。图表具有一个items属性,可用于将文本精灵添加到图表中 在存储上设置事件处理程序以监视记录数的更改。如果存储为空(计数===0),则将一些预配置的“无数据”文本精灵添加到chart.items

我已经使用Ext.create('Ext.chart.chart')在ExtJS4中创建了一个图表,如果存储区是空的,我会在图表中显示一个空文本消息,例如“无数据”。您能帮我一下吗?

您可以使用类似于中讨论的技术。图表具有一个
items
属性,可用于将文本精灵添加到图表中

在存储上设置事件处理程序以监视记录数的更改。如果存储为空(计数===0),则将一些预配置的“无数据”文本精灵添加到
chart.items