opensearch visualizations - procure-project/EU-Contract-Hub GitHub Wiki
OpenSearch Visualizations Guide
Overview
OpenSearch Dashboards provides a rich set of visualization tools for analyzing procurement data. While visualizations cannot be permanently saved, they can be shared via URLs and recreated easily using this guide.
Each visualization transforms raw procurement data into meaningful graphical representations. The right visualization can reveal patterns, trends, and insights that might not be apparent from looking at the data tables alone.
This guide will help you select, create, and share visualizations tailored to procurement analysis.
Visualization Types
1. Area Charts
Area charts illustrate trends over time by displaying the evolution of numeric values through filled-in areas. They work particularly well for showing cumulative values or comparing multiple data series.
Use Cases:
- Contract value distribution over time
- Cumulative procurement spending
- Comparative analysis of procurement types
Quick Setup:
- Select 'Area' visualization
- X-axis: Date field (e.g., "Dispatch Date")
- Y-axis: Numeric field (e.g., "Value")
- Optional: Split series by "Contract Nature"
2. Bar Charts
Bar charts compare categories against numeric values using rectangular bars. The length of each bar represents the value, making it easy to compare magnitudes across different categories.
Use Cases:
- CPV code distribution
- Contract values by country
- Procurement procedures comparison
Quick Setup:
- Select 'Vertical/Horizontal Bar' visualization
- X-axis: Category field (e.g., "Country")
- Y-axis: Count or sum of "Value"
- Optional: Stack by "Contract Nature"
3. Pie/Donut Charts
Pie and donut charts display proportions of a whole. Each slice represents a category's share of the total, making them ideal for showing percentage distributions.
Use Cases:
- Contract nature distribution
- Procurement route breakdown
- Value range categories
Quick Setup:
- Select 'Pie' visualization
- Slice size: Count or sum of "Value"
- Split slices: Category field (e.g., "Contract Nature")
Procurement Example:
To visualize the distribution of procurement procedures:
- Create a pie chart with slice size: Count of documents
- Split slices by "Procurement Type"
- Use the "Donut" option for better readability
This reveals which procurement procedures are most commonly used (Open, Restricted, Negotiated, etc.).
4. Data Table
Data tables present detailed information in rows and columns. They enable sorting, pagination, and customized columns, making them ideal for detailed data examination.
Use Cases:
- Contract details listing
- Lot analysis
- Bidder comparison
Quick Setup:
- Select 'Data Table' visualization
- Add columns: Select relevant fields
- Enable sorting and pagination
- Add sum/average for numeric columns
Procurement Example:
To create a detailed view of high-value contracts:
- Create a data table with columns: "Title", "Value", "Contracting Authority.Name", "Country", "CPV Description"
- Add a filter for "Value" > 1,000,000
- Sort by "Value" in descending order
- Add sum of "Value" as a footer
This provides a detailed list of major procurement contracts with essential information.
5. Metric
Metric visualizations display single numbers or values prominently. They're perfect for key performance indicators or summary statistics that need emphasis.
Use Cases:
- Total contract count
- Total value sum
- Average contract value
Quick Setup:
- Select 'Metric' visualization
- Choose aggregation (count, sum, average)
- Optional: Add trend arrow
- Configure thresholds if needed
6. Heat Maps
Heat maps use color intensity to represent data values in a two-dimensional grid. They're excellent for showing patterns and concentrations across two variables.
Use Cases:
- Geographic distribution of contracts
- Value concentration by region
- Temporal patterns in procurement
Quick Setup:
- Select 'Heat Map' visualization
- Y-axis: Category (e.g., "Country")
- X-axis: Date intervals
- Color intensity: Count or sum of "Value"
7. Tag Cloud
Tag clouds visualize text data by displaying words with sizes proportional to their frequency. They provide a quick visual impression of dominant terms.
Use Cases:
- Common CPV codes
- Active contracting authorities
- Frequent procurement types
Quick Setup:
- Select 'Tag Cloud' visualization
- Size: Count of occurrences
- Tags: Category field (e.g., "CPV Description")
Procurement Example:
To visualize the most common procurement descriptions:
- Create a tag cloud with tags: "Title" (using significant terms aggregation)
- Size: Count of documents
- Set maximum number of tags to 50
This highlights the most frequently occurring terms in procurement titles, giving insight into common procurement subjects.
Creating Custom Visualizations
Basic Steps
Creating a visualization in the EU Contract Hub follows this workflow:
- Click "Visualize" in the left menu
- Choose "Create visualization"
- Select visualization type
- Configure data source
- Set up visualization parameters
The process is designed to be intuitive, allowing you to see changes in real-time as you configure your visualization.
Data Selection
Before visualizing data, you need to specify what data to include:
- Choose index pattern (default is the `procure index)
- Select time range if applicable (e.g., last 5 years)
- Apply filters as needed (e.g., specific countries or CPV codes)
- Configure metrics and buckets to define what data to display
Metrics Configuration
Metrics determine the numeric values in your visualization:
- Count: Number of procurement documents (contracts)
- Sum: Total of a numeric field (e.g., contract values)
- Average: Mean value of a numeric field (e.g., average contract value)
- Percentiles: Statistical distribution (e.g., median contract value)
- Unique Count: Number of distinct values (e.g., unique contracting authorities)
Bucket Configuration
Buckets split your data into meaningful groups:
- Date Histogram: Groups by time intervals (e.g., contracts by month)
- Terms: Groups by values of a field (e.g., contracts by country)
- Range: Groups by numeric ranges (e.g., value brackets)
- Filters: Groups by specific criteria (e.g., healthcare vs. non-healthcare)
- Significant Terms: Finds statistically notable terms
Sharing and URL Parameters
Sharing Options
Since visualizations cannot be permanently saved in the EU Contract Hub, sharing is done through URLs:
- After creating a visualization, click the "Share" button
- Copy the generated URL (this captures all visualization settings)
- Share the URL with colleagues (they will see the exact same visualization)
- Bookmark important visualizations for your own reference
Sharing Tip:
URLs can be quite long, so consider using a URL shortener service for easier sharing. All visualization parameters are encoded in the URL, so shortening doesn't lose any information.
URL Parameters
The shared URL contains parameters that define your visualization:
- Time range selection (from and to dates)
- Applied filters and queries
- Visualization type and configuration
- Metric and bucket settings
- Display options (colors, labels, etc.)
These parameters can be modified directly in the URL if needed, allowing for advanced customization.
Best Practices
Data Presentation
Follow these guidelines for effective data visualization:
- Choose appropriate visualization type: Use bar charts for comparisons, line/area charts for trends, pie charts for proportions
- Use clear labels and titles: Make sure viewers understand what they're seeing
- Apply consistent color schemes: Use colors meaningfully (e.g., same color for same contract type across visualizations)
- Include relevant context: Add filters to focus on specific segments of data
- Consider data volume: For large datasets, use aggregations rather than showing all data points
Troubleshooting
To learn about filtering options in visualizations, refer to the Filter System Documentation.