Getting Started
Overview
Installation
Theme
Forms
Basic Inputs
Custom Inputs
Select
Components
Components
78
Micro Charts
Navigation
Libraries
Content Editor
Data View
Form Builder
Image Designer
Kanban Board
PDF Viewer
Video Player
Latest npm version of @ngstarter-ui/componentsWeekly npm downloads of @ngstarter-ui/components
Buy License

Bar Chart

Bar micro chart displays a compact comparison of small numeric values. Use it inside KPI cards, table cells, summaries, dense admin panels, reports, or as a simple dashboard chart when a small bar chart is enough.

Use full ECharts charts for complex analytics, detailed axes, legends, drilldown, zooming, or advanced chart interactions.

API Reference for Bar Chart

import { MchartBar } from '@ngstarter-ui/components/micro-chart';

PropTypeDefault
data*
Array of numeric values to be displayed in the chart.
number[][]
labels
Array of strings to be used as labels for the data points.
string[][]
gap
The gap between bars.
number0.2
radius
The corner radius of the bars.
number0
highlight
Whether to highlight bars on hover.
booleanfalse
responsive
Whether the chart should resize automatically to fit its container.
booleanfalse
fillGradient
Whether to use a gradient fill for the bars.
booleanfalse
xAccessor
Function to access the x-value (index by default).
(d: any, i: number) => any
yAccessor
Function to access the y-value (value by default).
(d: any) => any
tooltip
Optional template for the tooltip.
TemplateRef<any>
tooltipPosition
Position of the tooltip.
OverlayPosition'after-center'