Hybrid View

  1. #1
    Sencha User
    Join Date
    Sep 2010
    Posts
    3
    Vote Rating
    2
    nadim59 is on a distinguished road

      1  

    Default Answered: line graph in grid cell

    Answered: line graph in grid cell


    I have a grid with 12 values (1 per month).
    I would like to add a column with a graph displaying on each row the content of the previous values. Is it possible?
    Actually, i have a single graph that i refresh on selectionchange but the effect is not as a real dashboard.
    I'm working with extjs 4.0.7.

  2. Inside the renderer you have full access to the record for that row. It's the third argument passed to the renderer. Doesn't that give you the information you need to create the chart's store?

    http://localhost/temp-ext-4.0.7/docs...n-cfg-renderer

    You may find this UX makes life a bit easier:

    http://www.sencha.com/forum/showthread.php?148064

  3. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,620
    Answers
    3452
    Vote Rating
    817
    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


    It's possible but good luck with performance. You can render the chart to any element using renderTo
    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.

  4. #3
    Sencha User
    Join Date
    Sep 2010
    Posts
    3
    Vote Rating
    2
    nadim59 is on a distinguished road

      1  

    Default


    Thank you for your answer.
    The grid have a paging toolbar and i can reduce number of rows so performance should not be a problem.
    As i'm working with a json filled with cgi script. I cannot find the way to dinamically generate the store for the graph using local data (the one already available in the grid row) from inside the renderer.

  5. #4
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,499
    Answers
    527
    Vote Rating
    286
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      1  

    Default


    Inside the renderer you have full access to the record for that row. It's the third argument passed to the renderer. Doesn't that give you the information you need to create the chart's store?

    http://localhost/temp-ext-4.0.7/docs...n-cfg-renderer

    You may find this UX makes life a bit easier:

    http://www.sencha.com/forum/showthread.php?148064

Thread Participants: 2

Tags for this Thread