Skip to content

Histogram

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

TIP

Note that Histogram and Bar chart are used in different cases. Refer to Histogram vs. Bar chart for more information.

D3 chart

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

Chart.Histogram

For Horizontal view, use invertAxis={true}.

js
import { Chart } from '@semcore/ui/d3-chart';

HistogramChartProps

BaseChartProps<> & {...}
NameTypeDescription
groupKeystring Field name that groups the data points
xScaleScaleBand<any> | ScaleTime<any, any> Custom x-axis scale
yScaleScaleLinear<any, any> Custom y-axis scale

Bar

Properties of a single Histogram bar are the same as in Bar chart.

Released under the MIT License.

Released under the MIT License.