Skip to content
Plotly templates

Physics — Plot: Ohm's Law (V–I)

Linear voltage–current characteristic of an ohmic resistor.

Template previewPlotly
Rendering…

Make it your own.

{
  "data": [
    {"type":"scatter","mode":"lines+markers","name":"R = 5 ohm","line":{"color":"#6366f1","width":3},
     "x":[0,1,2,3,4,5],"y":[0,5,10,15,20,25]}
  ],
  "layout": {"title":"Ohm's law","xaxis":{"title":"current I (A)"},"yaxis":{"title":"voltage V (V)"}}
}