Add form and make graph dynamic.

The diff will show a lot of code changed, but that's mostly just indentation because I moved
the chart creation into a submit handler for the form. Probably don't have to fully recreate the chart object
for each submit, but this works for now and I think is a decent example.
Nice! That's what I was looking for. What do you mean that I can "comment
on the lines of the diff"? I want to make sure that I take advantage of all
of the good times. Thanks again for the help!


On Wed, Sep 17, 2014 at 1:09 PM, Paul McLanahan <notifications@github.com>
wrote:

> In index.html:
>
> > -                            Tmax = 20;
> > -                            var data = [],
> > -                                i;
> > -
> > -                            for (i = 1; i <= Tmax; i++) {
> > -                                data.push({
> > -                                    x: i,
> > -                                    y: 0.5*Math.pow(5-0.1*i,0.5)
> > -                                });
> > -                            }
> > -                            return data;
> > -                        })()
> > -                    }]
> > -                });
> > +                    });
> > +                }).trigger('submit');
>
> FYI, you can comment on the lines of the diff :) Good times [image: :+1:]
>
> For example, this line is there so that the submit event will be fired on
> page load so that the default values in the form will be used to draw the
> chart immediately.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/letsgoexploring/Interactive-Models/pull/1/files#r17690388>
> .
>