SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2005
    Posts
    74
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Using Javascript to make interactive plots

    Hi,

    I wanted to ask if there exist any ready-to-use scripts for creating interactive plots with JS. What I mean by interactive, is, for example, if you have a plot with 5 histogram bars, each of which could correspond to, let's say, the number of people in a school (say schools 1,2,3,4 and 5) , one could select, by ticking a checkbox on a list outside the plot, which of the bars (schools) would be visible in the plot and which not.

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,684
    Mentioned
    99 Post(s)
    Tagged
    4 Thread(s)
    Google provides a wide range of good charts. Here's an interactive example https://developers.google.com/chart/...action_example

    The main idea is that when something happens (a table is sorted, a button is clicked, a checkbox is checked, etc...) that you update the data, and redraw the chart.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


Bookmarks

Posting Permissions

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