decimalsFromD3: Extract the number of decimal places from a d3 format string.

View source: R/chartutils.R

decimalsFromD3R Documentation

Extract the number of decimal places from a d3 format string.

Description

All chart functions should accept d3 formats. This is used by functions that do not handle d3 to find the number of decimal places used to format labels and hovertext. #' @noRd

Usage

decimalsFromD3(format, default = 0)

Arguments

format

d3 formatting string

default

The number of decimal places if format is not provided (usually signifying automatic formatting).

Value

integer


Displayr/flipStandardCharts documentation built on Feb. 26, 2024, 12:42 a.m.