Skip to main content

Read distributions and targets

Read distributions and targets (dark theme)
Read distributions and targets (light theme)

Drag the divider or use the arrow keys to compare themes.

Read distributions and targets
Read distributions and targets (dark theme)
Read distributions and targets (light theme)

Drag the divider or use the arrow keys to compare themes.

  1. A radial chart shows the distribution and its categories.
  2. A quota card combines the measured and target values with a status.
Read distributions and targets

Django Chassis 1.0.23 · training site with Russian UI

  1. A radial chart shows the distribution and its categories.
  2. A quota card combines the measured and target values with a status.

How to add it​

In src/apps/admins/services/demo_dashboard_service.py, add the two typed components to the list returned by DemoDashboardService.get_examples(). The demo gallery at /admin/pages/dashboard-components/ renders each item via {% chassis_component example %} in src/apps/admins/templates/admins/dashboard/components.html, which loads the Chassis ApexCharts bundle and chart initializer.

from decimal import Decimal

from django_chassis.dto import GoalSummaryDTO, ShareSummaryDTO


examples = [
ShareSummaryDTO(
slug='example-donut', title='Storage distribution', definition='Selected segment',
numerator=Decimal(25), denominator=Decimal(100),
numerator_label='Selected', remainder_label='Other', variant='donut'
),
GoalSummaryDTO(
title='Storage quota', actual=Decimal(125), target=Decimal(100), unit='GB', mode='quota'
)
]

The fixture renders a 25% share and 125% quota usage. Set variant='radial' for the radial progress form.