Skip to main content

Overview

The Credit Usage Chart widget provides a visual breakdown of how credits are consumed over time. It helps customers understand their spending patterns and identify which features or services drive the most usage.

Layout

The Usage widget displays usage over time in a stacked bar chart, providing a clear view of total spend and feature-level consumption for the selected period. The layout includes the following elements:
  • Stacked bar chart: shows daily credit consumption across different features or services.
  • Color-coded legend: distinguishes usage by feature (e.g., Feature 1, Feature 2, Feature 3).
  • Total spend: aggregate credits consumed over the selected timeframe.
  • Date range selector: allows filtering usage data (e.g., last 7 days, last 30 days).
This widget is especially useful for monitoring consumption trends, analyzing feature-level usage, and forecasting future credit needs.

Customization

Custom CSS

The widget styling can be customized by applying custom CSS using code. Below you can find a list of the supported CSS classes:

Main component

Header component

Tooltip component

Legend component

Empty state component

Error state component

Snippet

Additional resources

Global Theming Customization

ReactReact
Vue.jsVue.js
Next.jsNext.js
Webflow, Wordpress, HTMLWebflow, Wordpress, HTML