How to remove decimals from bins

Custom bins are lower-inclusive and you might see decimals in your ranges. 

Protobi chart for question "Q1" asking "Thinking about your Condition X patients, how many of those are currently receiving a GA (gamma antagonist)?" displaying binned responses with decimal percentages: ≤ 0 (5.0%), 0.1 to 1 (9.0%), 1.1 to 2 (12.0%), 2.1 to 5 (26.0%), 6 to 9 (9.0%), 10 to 100 (39.0%), with N=100.

Add the "epsilon" attribute

To remove decimals is to add the "epsilon" attribute to the element's JSON. In mathematics epsilon represents an arbitrarily small quantity. Setting "epsilon" to 1 will remove any decimals from the binned ranges. 

Protobi JSON editor dialog titled "Edit element properties: Q1" displaying element configuration with key properties visible: "key": "Q1", "confirmitType": "Open", "title" text, "color": "", "type": "", "chartOptions": {...}, and a "roundby" array containing [0, 1, 2, 5, 9, 100]. Line 63 shows "epsilon": 1 highlighted in blue. Dialog has Cancel and Ok buttons.

The result:

Protobi chart for question "Q1" showing the same question about Condition X patients, but now displaying integer bins without decimals: ≤ 0 (5%), 1 (9%), 2 (11%), 3 to 5 (27%), 6 to 9 (9%), 10 to 100 (39%), with N=100. The bin labels no longer show decimal values.