Looks good!
You could make the "number of points" also a control (Just right-click on the diagram constant and select "change to control").
Now it is also very easy to expand it to higher polynomial orders. Just make the coefficient array longer, no other changes needed. 🙂