Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Jul 2011
    Location
    Holland
    Posts
    98
    Vote Rating
    1
    Answers
    2
    mrduck is on a distinguished road

      0  

    Default Unanswered: A message or html when the chart is empty

    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.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,549
    Vote Rating
    873
    Answers
    3567
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    There is no out of the box way to do it.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    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 services@sencha.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.

  3. #3
    Sencha Premium Member
    Join Date
    Sep 2010
    Posts
    128
    Vote Rating
    1
    Tod is on a distinguished road

      0  

    Default


    Please consider adding this feature to charts.

  4. #4
    Sencha User
    Join Date
    Dec 2011
    Location
    Hyderabad, India
    Posts
    117
    Vote Rating
    5
    Answers
    6
    Naga is on a distinguished road

      1  

    Default


    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".