christygarreau / DataVisualization

0 stars 0 forks source link

How do I add function to switch between graph and table? #2

Open christygarreau opened 5 years ago

christygarreau commented 5 years ago

Ask about in class

agreyson commented 5 years ago

You could approach this by adding a boolean flag and toggling it in keyPressed. In draw, when the flag is true draw the graph, when it's false draw the table.

agreyson commented 5 years ago

You could approach this by adding a boolean flag and toggling it in keyPressed. In draw, when the flag is true draw the graph, when it's false draw the table.

On Thu, May 23, 2019 at 11:11 AM christygarreau notifications@github.com wrote:

Ask about in class

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/christygarreau/DataVisualization/issues/2?email_source=notifications&email_token=ABIBI2T3RIGCWIKYRE4UOK3PW3M5DA5CNFSM4HPJBB3KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GVQ54HQ, or mute the thread https://github.com/notifications/unsubscribe-auth/ABIBI2WTQCT63NZ3H5HLGBDPW3M5DANCNFSM4HPJBB3A .

-- Ann Greyson Computer Science & Engineering Department Chair Middle School STEM Coordinator Castilleja School 1310 Bryant Street Palo Alto, CA 94301 650.470.7816

WOMEN LEARNING I WOMEN LEADING