Skip to content

e_axis_formatter does not appear to work #100

Description

@nschwamm

The e_axis_formatter does not appear to work such that taking the examples from the reference guide (https://echarts4r.john-coene.com/reference/axis.html) do not even work.

For example:

 # use formatter
cars %>%
  dplyr::mutate(
    speed = speed / 25
  ) %>%
  e_charts(speed) %>%
  e_scatter(dist) %>%
  e_y_axis(
    formatter = e_axis_formatter("currency")
  ) %>%
  e_x_axis(
    formatter = e_axis_formatter("percent", digits = 0)
  )

This just shows an empty output for me.

In fact, any example with e_axis_formatter applied to the y axis appear to fail.

# y-axis example
cars %>%
  e_charts(speed) %>%
  e_line(dist) %>%
  e_y_axis(dist,formatter = e_axis_formatter("decimal")) %>%
  e_x_axis(speed)

If I try using it with the x axis, all the data disappears.

# x-axis example
cars %>%
  e_charts(speed) %>%
  e_line(dist) %>%
  e_x_axis(speed,formatter = e_axis_formatter("decimal")) %>%
  e_y_axis(dist)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions