powered by
Configuration for charts with no data
ax_nodata( ax, text = "No data", align = "center", verticalAlign = "middle", color = NULL, fontSize = NULL, fontFamily = NULL, offsetX = NULL, offsetY = NULL )
An apexchart()
apexchart()
htmlwidget object.
htmlwidget
An apexchart() htmlwidget object.
The text to display when no-data is available.
Horizontal alignment: "left", "center" or "right".
"left"
"center"
"right"
Vertical alignment: "top", "middle" or "bottom".
"top"
"middle"
"bottom"
ForeColor of the text.
FontSize of the text.
FontFamily of the text.
Text offset.
empty <- data.frame( var1 = character(0), var2 = numeric(0) ) apex(empty, aes(var1, var2), "column") %>% ax_nodata( text = "Sorry no data to visualize", fontSize = "30px" )
Run the code above in your browser using DataLab