Skip to content

Histogram chart

Histogram chart is based on the bar chart, but has slightly different settings.

TIP

Please note that histogram chart and bar chart are used in the various cases. Check out the guides for more information.

D3 chart

For all common D3 chart properties, refer to D3 chart API.

Chart.Histogram

For Horizontal view, you should pass true into invertAxis prop

js
import { Chart } from 'intergalactic/d3-chart';

HistogramChartProps

BaseChartProps<> & {...}
NameTypeDescription
groupKeystring
xScaleScaleBand<any> | ScaleTime<any, any>
yScaleScaleLinear<any, any>

Bar

All properties for the histogram chart developed with D3 you can find in the bar chart guide.

Released under the MIT License.

Released under the MIT License.