📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
/*
.bb-axis .domain - X / Y axis line
.bb-axis .tick line - ticks
.bb-axis - [fill] text
.bb-legend-item text - [fill] text underneath the chart
.bb-xgrid-focus - line which shows on chart on hover
.bb-ygrid - grid lines
*/
/* dark theme config */
body.dark .bb-legend-item text {
fill: var(--color-gray-300);
}
body.dark .bb-axis {
fill: var(--color-gray-300);
}
body.dark .bb-axis .domain {
stroke: var(--color-slate-700);
}
body.dark .bb-axis .tick line {
stroke: var(--color-slate-700);
}
body.dark .bb-xgrid-focus {
stroke: var(--color-slate-600);
}
/* light theme config */
body.light .bb-legend-item text {
fill: var(--color-gray-800);
}
body.light .bb-axis {
fill: var(--color-gray-700);
}
body.light .bb-axis .domain {
stroke: var(--color-gray-300);
}
body.light .bb-axis .tick line {
stroke: var(--color-gray-300);
}
body.light .bb-xgrid-focus {
stroke: var(--color-gray-300);
}
body.light .bb-ygrid {
stroke: var(--color-gray-200);
}
body.dark .bb-ygrid {
stroke: var(--color-slate-800);
}
.bb-xgrid-focus {
shape-rendering: geometricprecision;
}
.bb-axis {
font-family: var(--font-sans);
font-weight: 500;
letter-spacing: 0.02em;
}
.session-detail-chart .bb-axis-x .tick:first-of-type text {
text-anchor: start !important;
}
.session-detail-chart .bb-axis-x .tick:last-of-type text {
text-anchor: end !important;
}
.bb-legend {
font-family: var(--font-sans);
}
.bb-line {
stroke-width: 1.5;
}
.bb-bar {
fill-opacity: 0.3;
stroke-width: 1.5;
}
/* Custom events stacked chart: keep stronger fill for dynamic series */
.custom-events-stacked-chart .bb-bar {
fill-opacity: 0.85 !important;
}
.bb-target-unique .bb-bar {
stroke: var(--color-blue-600) !important;
}
.bb-target-results .bb-bar {
stroke: var(--color-blue-600) !important;
}
.bb-target-total .bb-bar {
stroke: var(--color-amber-600) !important;
}
.bb-target-sessionDuration .bb-bar {
stroke: var(--color-fuchsia-500) !important;
}
.bb-target-bounce .bb-bar {
stroke: var(--color-teal-400) !important;
}
.bb-target-viewsPerUnique .bb-bar {
stroke: var(--color-red-400) !important;
}
.seo-impressions-position-chart .bb-bar {
fill-opacity: 0.85 !important;
stroke: none !important;
stroke-width: 0 !important;
}
.seo-impressions-position-chart .bb-axis-x .tick tspan {
font-weight: 600;
}
.seo-impressions-position-chart .bb-axis-x .tick tspan:nth-child(2) {
fill: var(--color-gray-600);
font-family: var(--font-sans);
font-size: 10px;
font-weight: 500;
letter-spacing: 0;
}
body.dark .seo-impressions-position-chart .bb-axis-x .tick tspan:nth-child(2) {
fill: var(--color-slate-300);
}
/* Revenue chart styling */
.bb-target-revenue .bb-bar {
stroke: #ea580c;
fill-opacity: 0.85 !important;
}
.bb-target-refundsAmount .bb-bar {
stroke: #ea580c;
fill-opacity: 1 !important; /* keep rgba() fill visible (don't multiply by .bb-bar opacity) */
}
.bb-target-dns .bb-bar {
stroke: #ec4319 !important;
}
.bb-target-tls .bb-bar {
stroke: #f27059 !important;
}
.bb-target-conn .bb-bar {
stroke: #f7a265 !important;
}
.bb-target-response .bb-bar {
stroke: #f5d376 !important;
}
.bb-target-render .bb-bar {
stroke: #709775 !important;
}
.bb-target-dom-load .bb-bar {
stroke: #a5e6ab !important;
}
.bb-target-ttfb .bb-bar {
stroke: var(--color-sky-500) !important;
}
.bb-target-frontend .bb-bar {
stroke: #709775 !important;
}
.bb-target-network .bb-bar {
stroke: #f7a265 !important;
}
.bb-target-backend .bb-bar {
stroke: var(--color-sky-500) !important;
}
.bb-target-p50 .bb-bar {
stroke: #0ea5e9 !important;
}
.bb-target-p75 .bb-bar {
stroke: #eab308 !important;
}
.bb-target-p95 .bb-bar {
stroke: #ef4444 !important;
}
.bb-target-events .bb-bar {
stroke: var(--color-blue-700) !important;
}
:root {
--funnel-stripe-1: #e2e4ef;
--funnel-stripe-2: #d8dbed;
}
.dark {
--funnel-stripe-1: #1e2340;
--funnel-stripe-2: #2a3058;
}
.bb-target-dropoff .bb-bar {
stroke: none !important;
stroke-width: 0 !important;
}
.funnel-chart .bb-target-dropoff .bb-bar {
fill: url(#funnel-dropoff-stripe) !important;
opacity: 0.8;
}
.funnel-chart .bb-bar {
fill-opacity: 1 !important;
stroke: none !important;
stroke-width: 0 !important;
transition: fill-opacity 0.15s ease-out;
}
.funnel-chart .bb-target-events.bb-defocused .bb-bar,
.funnel-chart .bb-target-dropoff.bb-defocused .bb-bar {
fill-opacity: 0.6 !important;
}
.bb-target-Technical-Expenses .bb-bar {
stroke: #ec4319 !important;
}
.bb-target-Business-Expenses .bb-bar {
stroke: #f27059 !important;
}
.bb-target-MRR .bb-bar {
stroke: #709775 !important;
}
.bb-target-avgResponseTime .bb-bar {
stroke: #709775 !important;
}
.bb-target-occurrences .bb-bar {
stroke: var(--color-red-600) !important;
}
@media (max-width: 640px) {
.custom-space-x-style > :not([hidden]) ~ :not([hidden]) {
--tw-space-x-reverse: 0 !important;
margin-right: calc(0.5rem * var(--tw-space-x-reverse)) !important;
margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse))) !important;
}
}
/* Clickable chart area */
#traffic-chart .bb-event-rects .bb-event-rect {
cursor: pointer;
}
.bb-circle {
transition: transform 0.1s ease-in-out;
transform-box: fill-box;
transform-origin: center;
}
.bb-circle.is-direct-hover {
transform: scale(1.5);
}
#traffic-chart .bb-lines path,
#traffic-chart .bb-areas path {
pointer-events: stroke;
cursor: pointer;
}
#traffic-chart .bb-circles circle,
#traffic-chart .bb-bars path {
cursor: pointer;
}
/* Annotation lines */
.bb-xgrid-line.annotation-line,
.bb-ygrid-line.annotation-line {
pointer-events: all;
cursor: pointer;
}
.bb-xgrid-line.annotation-line line,
.bb-ygrid-line.annotation-line line {
stroke: var(--color-slate-500);
stroke-width: 1;
stroke-dasharray: 4 3;
pointer-events: stroke;
}
.bb-ygrid-line.grid-line-95 line {
stroke: var(--color-slate-500);
}
.bb-xgrid-line.annotation-line text,
.bb-ygrid-line.annotation-line text {
font-size: 10px;
font-weight: 600;
fill: var(--color-gray-700);
dominant-baseline: middle;
text-anchor: start;
paint-order: stroke fill;
stroke: white;
stroke-width: 3px;
stroke-linecap: round;
stroke-linejoin: round;
pointer-events: all;
}
.bb-ygrid-line.annotation-line text {
transform: translateY(-14px);
}
body.dark .bb-xgrid-line.annotation-line text,
body.dark .bb-ygrid-line.annotation-line text {
fill: var(--color-gray-300);
stroke: var(--color-slate-900);
}
body.dark .bb-chart-arc path {
stroke: var(--color-slate-900);
}
/* Admin panel charts: same problem as the AI charts below - series ids
('cash', 'recognised', ...) don't match the per-target stroke rules above,
so bars would render washed out with a stray dark outline. */
.admin-chart .bb-bar {
fill-opacity: 0.85 !important;
stroke: none !important;
stroke-width: 0 !important;
}
/* AI chat charts: keep bars/areas opaque since their series names don't match
the project view's stroke rules; without this they'd inherit the global
.bb-bar { fill-opacity: 0.3 } and look washed out. */
.ai-chart .bb-bar {
fill-opacity: 0.85;
stroke: none;
}
.ai-chart .bb-area {
fill-opacity: 0.2;
}
.ai-chart .bb-axis text,
.ai-chart .bb-legend text {
fill: var(--color-gray-700);
}
body.dark .ai-chart .bb-axis text,
body.dark .ai-chart .bb-legend text {
fill: var(--color-gray-300);
}
.ai-chart .bb-grid line {
stroke: var(--color-gray-200);
}
body.dark .ai-chart .bb-grid line {
stroke: var(--color-slate-700);
}
.ai-chart .domain {
stroke: var(--color-gray-300);
}
body.dark .ai-chart .domain {
stroke: var(--color-slate-600);
}
/* AI chart anomaly annotations: orange dashed for spikes, blue dashed for dips */
.ai-chart .bb-xgrid-line.annotation-spike line {
stroke: var(--color-orange-500);
stroke-width: 1;
stroke-dasharray: 4 3;
}
.ai-chart .bb-xgrid-line.annotation-spike text {
fill: var(--color-orange-600);
}
body.dark .ai-chart .bb-xgrid-line.annotation-spike text {
fill: var(--color-orange-400);
}
.ai-chart .bb-xgrid-line.annotation-dip line {
stroke: var(--color-blue-500);
stroke-width: 1;
stroke-dasharray: 4 3;
}
.ai-chart .bb-xgrid-line.annotation-dip text {
fill: var(--color-blue-600);
}
body.dark .ai-chart .bb-xgrid-line.annotation-dip text {
fill: var(--color-blue-400);
}