D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
daluu
Full window
Github gist
Sample trendline and linear, polynomial, exponential, logarithmic, and power regression analysis using regression.js
<!DOCTYPE html> <html> <head> <title>Trendline (linear/polynomial/exponential/logarithmic/power) regressions analysis</title> <style> .chart { } .main text { font: 8px sans-serif; } .axis line, .axis path { shape-rendering: crispEdges; stroke: black; fill: none; } circle { fill: steelblue; } .legend rect { fill:white; stroke:black; opacity:0.8; font: 12px sans-serif; } </style> <script src="//d3js.org/d3.v3.min.js" charset="utf-8"></script> </head> <body> <div class='content'> <!-- /the chart goes here --> </div> <script type="text/javascript" src="regression.min.js"></script> <script type="text/javascript" src="d3.legend.js"></script> <script type="text/javascript" src="scatterchart.js"></script> </body> </html>
https://d3js.org/d3.v3.min.js