Skip to content
Plotly templates

Math — Plot: Quadratic (Parabola)

The parabola y = x squared.

Template previewPlotly
Rendering…

Make it your own.

{
  "data": [
    {"type":"scatter","mode":"lines+markers","name":"y = x^2","line":{"color":"#2563eb","width":3},
     "x":[-4,-3,-2,-1,0,1,2,3,4],"y":[16,9,4,1,0,1,4,9,16]}
  ],
  "layout": {"title":"Quadratic function","xaxis":{"title":"x"},"yaxis":{"title":"y"}}
}