<template>
<NbLineChart title="Daily active users" :series="series" />
</template>
<script setup lang="ts">
const series = [
{
name: 'DAU',
data: [
{ x: 'Mon', y: 1240 },
{ x: 'Tue', y: 1380 },
{ x: 'Wed', y: 1410 },
{ x: 'Thu', y: 1620 },
{ x: 'Fri', y: 1530 },
{ x: 'Sat', y: 1180 },
{ x: 'Sun', y: 1090 },
],
},
]
</script>Multiple series
Curve styles
Filled area
Toggle area to fill the region under each line, useful for cumulative metrics.
Data points
Toggle points to mark each data point with a circle.
Axis labels on narrow charts
The x axis shows about six evenly spaced labels, always including the first and the last point. The chart measures those labels in the axis font against the width it actually has. When they fit, they stay where they are. When two of them would overlap, on a phone or with long labels such as 2026-10-20 14:00, the chart shows fewer, with room between them. Every point is still in the line and in the tooltip. Nothing about this depends on the viewport, only on the chart's own width and its labels.
No axis label is cut off at the chart's edge. A first or last label too long to centre under its point moves in just far enough to show in full, and if that brings it against its neighbour, the neighbour gives way. The top y-axis label, whose rounded value can sit above the plot, moves down the same way, while its gridline and the scale stay where they are.