Skip to content
Plotly templates

Maths — Cubic Function

The graph of y = x cubed.

Template previewPlotly
Rendering…

Make it your own.

{
  "data": [
    {"type":"scatter","mode":"lines","name":"y = x^3","line":{"color":"#6366f1","width":3},
     "x":[-3,-2.5,-2,-1.5,-1,-0.5,0,0.5,1,1.5,2,2.5,3],
     "y":[-27,-15.6,-8,-3.4,-1,-0.125,0,0.125,1,3.4,8,15.6,27]}
  ],
  "layout": {"title":"Cubic function y = x^3","xaxis":{"title":"x"},"yaxis":{"title":"y"}}
}