Skip to main content

Consultations on Federal Legislation

Engagement through animation and interaction

Jurisdiction

Switzerland (Federal)

Primary Rules

Federal Act on the Consultation Procedure (CPA, SR 172.061); Consultation Ordinance (CO, SR 172.061.1); Fedlex

Target Audience

All

Project Hash ID

V593

Project Category Name

Cronos

Need similar?

Monitoring federal consultations is a critical requirement for organizations affected by upcoming Swiss legislative changes. However, navigating raw, text-heavy government publication lists can be incredibly time-consuming and prone to oversight. Transforming these unstructured textual records into an interactive and animated timeline provides immediate, visual comprehension, allowing stakeholders to grasp the entire legislative pipeline at a single glance.

When applied to the Swiss federal consultation procedure, this dashboard bridges the gap between raw data and actionable intelligence. By intelligently parsing the official Fedlex HTML output, the tool converts textual information into an animated Gantt chart.

The dashboard isn't just a passive drawing; it is a live tool. Users can isolate specific federal departments, search for keyword triggers, or filter by a specific time window. The underlying logic engine continuously compares statutory deadlines against the current date, automatically categorizing projects as "Planned," "Running," or "Completed." With a dynamically scaling timeline axis that seamlessly adjusts from a 6-month view to a 6-year overview, stakeholders are empowered to monitor the regulatory horizon with audit-proof clarity and precision.

Work Steps

Data sourcing and parsing

The starting point was the extraction of raw consultation data from the official Fedlex HTML structure. A robust parsing engine was developed to accurately isolate unstructured text blocks. Key regulatory identifiers, such as project titles, lead departments, descriptive summaries, and planned opening/closing dates, were extracted, cleaned, and converted into a highly structured Pandas DataFrame.

Implementing the app features

The functions of the app were developed. For instance, by programmatically comparing the start and end dates of each consultation against the current system date, the application dynamically tags each project as "Geplant" (Planned), "Laufend" (Running), or "Abgeschlossen" (Completed), enabling user filtering.

Interactive interface design

The user interface was constructed to ensure a clean, professional, and intuitive user experience. The layout was structured into a logical hierarchy, featuring responsive filter inputs, including keyword search bars, multi-select dropdowns for federal departments, and date-range pickers, positioned above the primary visualization canvas.

Gantt chart design

The visualization was built to render an animated, interactive Gantt chart. The permanent color-mapping ensures that federal departments retain a consistent visual identity regardless of which active filters are applied.

Axis scaling and optical refinement

To prevent visual clutter and overlapping text during wide time frame selections, a dynamic frequency routine was implemented. The system intelligently calculates the total number of months within the user's current view and automatically scales the timeline ticks.

Finalization and deployment

The finalized dashboard was packaged as a standalone, runnable application. Code was optimized for immediate responsiveness, ensuring that the underlying web server instantly updates the complex visual components upon any user interaction, ready for deployment in a modern compliance or public affairs workflow.