Skip to content
Vega-Lite templates

Engineering — Chart: Tensile Strength

Tensile strength of common materials (log scale).

Template previewVega-Lite
Rendering…

Make it your own.

{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
  "description": "Tensile strength (MPa)",
  "data": {"values": [
    {"material": "Concrete", "mpa": 3},
    {"material": "Aluminium", "mpa": 310},
    {"material": "Mild steel", "mpa": 400},
    {"material": "Titanium", "mpa": 900},
    {"material": "Carbon fibre", "mpa": 4000},
    {"material": "Spider silk", "mpa": 1300}
  ]},
  "mark": "bar",
  "encoding": {
    "y": {"field": "material", "type": "nominal", "sort": "-x", "title": "Material"},
    "x": {"field": "mpa", "type": "quantitative", "scale": {"type": "log"}, "title": "tensile strength (MPa, log)"},
    "color": {"field": "material", "type": "nominal", "legend": null}
  }
}