Results 1 to 4 of 4

Thread: A message or html when the chart is empty

    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
    Answers
    2
    Vote Rating
    2
      0  

    Default 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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3932
    Vote Rating
    1272
      0  

    Default

    There is no out of the box way to do it.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha Premium Member
    Join Date
    Sep 2010
    Posts
    129
    Vote Rating
    9
      0  

    Default

    Please consider adding this feature to charts.

  4. #4
    Sencha User
    Join Date
    Dec 2011
    Location
    Hyderabad, India
    Posts
    117
    Answers
    6
    Vote Rating
    5
      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".

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •