Skip to contents

Sets axis for x axis, y axis, and/or tool tip

Usage

setAxisFormat(
  myIO,
  xAxis = "s",
  yAxis = "s",
  toolTip = "s",
  xLabel = NULL,
  yLabel = NULL
)

Arguments

myIO

an htmlwidget object created by the myIO() function

xAxis

a string indicating a d3.js format

yAxis

a string indicating a d3.js format

toolTip

a string indicating a d3.js format

xLabel

a string label for axis

yLabel

a string label for axis

Value

the same myIO object with options set for the tooltip formats

Examples

# Set axis formats using d3.js format strings
myIO() |> setAxisFormat(xAxis = ".0f", yAxis = ".1f")
# Set axis labels myIO() |> setAxisFormat(xLabel = "Weight (lbs)", yLabel = "MPG")