• gaming stuff
    • MKW Time Trials
    • MKW Game Stats
    • MK8DX 48 Track Speedruns
MKW Game Stats
  • Character Classes
  • Kart Classes
  • All Characters
  • All Karts
  • Distinct Combos
  • All Combos
viewof pick_driver = Inputs.radio(
  ["lightest", "lighter", "light", "medium", "heavy", "heavier", "heaviest", "bowser"],
  { value: "heavy",
    label: "driver class:"}
)
filtered = transpose(data).filter((d) => pick_driver === d.driver_class)
viewof combo_stat_1 = Inputs.select(
  ["speed", "acceleration", "weight", "handling"],
  { value: "speed",
    label: "Stat 1:"
  }
)
viewof combo_stat_2 = Inputs.select(
  ["speed", "acceleration", "weight", "handling"],
  { value: "handling",
    label: "Stat 2:"
  }
)
Plot.plot({
  grid: true,
  inset: 10,
  marks: [
    Plot.dot(filtered, {
      x: combo_stat_1,
      y: combo_stat_2,
      fill: "gold",
      stroke: "gold"
    }),
    Plot.tip(filtered, Plot.pointer({
      x: combo_stat_1,
      y: combo_stat_2,
      channels: {driver: "driver_class", vehicle: "vehicle", speed: "speed", acceleration: "acceleration", weight: "weight", handling: "handling"},
      fill: "#0c2461",
      stroke: "gold",
      <!-- lineWidth: 20, -->
      textOverflow: null
    }))
  ]
})