axis: Create an axis for a chart

Description Usage Details

Description

Add an axis to a chart.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
eAxis(chart, which = c("x", "y"), type = c("value", "category", "time"), show = TRUE, 
    position = c("bottom", "top", "left", "right"), name = "", nameLocation = c("end", 
        "start"), nameTextStyle = emptyList(), boundaryGap = c(0, 0), min = NULL, 
    max = NULL, scale = TRUE, splitNumber = NULL, axisLine = list(show = TRUE, 
        onZero = FALSE), axisTick = list(show = FALSE), axisLabel = list(show = TRUE), 
    splitLine = list(show = TRUE), splitArea = list(show = FALSE), data = list())

eXAxis(chart, ...)

eYAxis(chart, ...)

Details

This function modified a few default options for the axis component in ECharts: 1) scale = TRUE (was FALSE by default in ECharts); 2) axisLine$onZero = FALSE (was TRUE in ECharts).


yihui/recharts documentation built on Aug. 29, 2020, 3:44 p.m.