3 Nov 2011 6:32 AM #1
Unanswered: A message or html when the chart is empty
Good day guys,
I'm working on a great Sencha Touch app and I'm using Sencha Charts too. It's my first project with Sencha, so it's new, exciting, but some things are pretty hard to get.
The following thing is pretty important for a good user experience, but I didn't find a solution on my own. When you have a ListPanel, you can use "emptyText" so show some text when the list is empty. In ordinary panels you can you can use the "html" parameter to do the same.
What's the best way to do this with a Chart? I couldn't find a config parameter which allows me to show some text (or html) when there is no data. Right now the screen just stays clear.
Can anyone help me out with this? Thank you.
3 Nov 2011 8:43 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
There is no out of the box way to do it.Mitchell Simoens @LikelyMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services email@example.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
14 Jun 2012 1:53 PM #3
Please consider adding this feature to charts.
20 Jun 2012 4:49 AM #4
You can check the store count and if it's less than zero then you can display a Popup showing something like "there is no data for the chart".