Filter on button click D3.js?
        Posted  
        
            by 
                user1461701
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by user1461701
        
        
        
        Published on 2012-06-17T21:12:34Z
        Indexed on 
            2012/06/17
            21:16 UTC
        
        
        Read the original article
        Hit count: 421
        
d3.js
I'm working on a version of this bubble chart http://vallandingham.me/vis/gates/. As I'm using a different set of data - instead of the "All Grants" and "Grants by Year" buttons - I have one for 5 consecutive years - 2010, 2009 etc.
My opening graph depicts the data for 2010 which is achieved by filtering the data from the .csv file , which contains the data for all 5 years. The problem I'm having is filtering and re-rendering the graph if another year is then chosen.
I'd really appreciate it if anyone has any suggestions how I could simply achieve this?
Thanks,
Majella
© Stack Overflow or respective owner