Results 1 to 5 of 5

Thread: [CHARTS] Line chart legend is not working (4.0.7 to 6.2)

  1. #1
    Sencha Premium User
    Join Date
    Mar 2016
    Location
    Barcelona
    Posts
    17
    Answers
    1

    Default Answered: [CHARTS] Line chart legend is not working (4.0.7 to 6.2)

    Hello!

    I upgraded an application from version 4.0.7 to 6.2.

    Before I had a line chart that looked like this:


    extjs-4.png

    Now, after upgrading, I have this:

    extjs-6.png

    As you can see, the legend is not working anymore.
    In v.4.0.7 I had legend{position:'top'}, now I changed it to legend{docked:'top'}, but nothing else.

    If you click on a legend name, the corresponding line disappears, so it seems to be doing something, but the appearance is awful and the colors are missing.

    I read the upgrade guides but I didn't see anything about legends.

    What am I missing?

    Thank you very much!

  2. OK, I found it.

    It was a silly mistake, I didn't have charts-all.css, so it wasn't painting the legend correctly. Now it does.

  3. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    I'm not sure what would cause that. Click a legend item should make that category disappear. It seems to be working in this test case:
    https://fiddle.sencha.com/#fiddle/1dt7

    Are you able to recreate the issue in a test case?
    https://fiddle.sencha.com/#home

  4. #3
    Sencha Premium User
    Join Date
    Mar 2016
    Location
    Barcelona
    Posts
    17
    Answers
    1

    Default

    Hello Gary,

    I can't seem to reproduce it: https://fiddle.sencha.com/#fiddle/1du6
    So I have no idea of why it isn't working in my application, since I used exactly the same configs and data.

    I'll keep looking, see if I find anything and I'll post it.
    Thanks anyway!

  5. #4
    Sencha Premium User
    Join Date
    Mar 2016
    Location
    Barcelona
    Posts
    17
    Answers
    1

    Default

    OK, I found it.

    It was a silly mistake, I didn't have charts-all.css, so it wasn't painting the legend correctly. Now it does.

  6. #5
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    Glad to hear it! And thanks for sharing the solution with the community.

Similar Threads

  1. Replies: 4
    Last Post: 4 Mar 2014, 7:09 AM
  2. Replies: 2
    Last Post: 11 Sep 2013, 3:49 PM
  3. [NOREPRO] Line chart - Legend selection/deselection has no effect on line chart Y axis scaling
    By maitreya.karandikar in forum Sencha Touch 2.x: Bugs
    Replies: 1
    Last Post: 31 Jan 2013, 6:08 AM
  4. Line Chart Legend
    By jason199x in forum Ext: Q&A
    Replies: 2
    Last Post: 3 Feb 2012, 11:25 AM
  5. Line Chart Legend
    By razwan in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 25 Nov 2009, 4:33 AM

Tags for this Thread

Posting Permissions

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