Safety

You can adjust the safety distances to control overflow using:

- `safetyXNoTicks`: the amount of pixels from the axis to the border when you use `hideTicks`.

- `safetyXTicks`: the amount of pixels from the axis to the border when you show ticks.

- `safetyXValues`: the amounf of pixels from top of the taller bin to the opposite border.

- `safetyY`: the number of pixels on top and bottom limits.

Choose an example

Usage

<HistogramG {bins} />

Props

bins

    (18) [ {…} ,{…} ,{…} ,{…} ,{…} , ]
    • 0: { range: Array(2) ,values: Array(2) }
    • 1: { range: Array(2) ,values: Array(3) }
    • 2: { range: Array(2) ,values: Array(4) }
    • 3: { range: Array(2) ,values: Array(3) }
    • 4: { range: Array(2) ,values: Array(9) }
    • 5: { range: Array(2) ,values: Array(9) }
    • 6: { range: Array(2) ,values: Array(4) }
    • 7: { range: Array(2) ,values: Array(6) }
    • 8: { range: Array(2) ,values: Array(9) }
    • 9: { range: Array(2) ,values: Array(4) }
    • 10: { range: Array(2) ,values: Array(5) }
    • 11: { range: Array(2) ,values: Array(5) }
    • 12: { range: Array(2) ,values: Array(10) }
    • 13: { range: Array(2) ,values: Array(3) }
    • 14: { range: Array(2) ,values: Array(4) }
    • 15: { range: Array(2) ,values: Array(4) }
    • 16: { range: Array(2) ,values: Array(0) }
    • 17: { range: Array(2) ,values: Array(8) }
    • length: 18