Documentation Index
Fetch the complete documentation index at: https://docs.encoreos.io/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Encore Health OS’s report visualization system transforms data into interactive charts and graphs. Use pre-built chart widgets on dashboards or embed charts directly into reports for enhanced data analysis.Chart Types
Bar Charts
Best For:- Comparing categories
- Showing rankings
- Year-over-year comparisons
- Vertical or horizontal orientation
- Grouped or stacked bars
- Custom color schemes
- Data labels on hover
- Revenue by program
- Expenses by department
- Bed occupancy by site
- Employee count by role
Line Charts
Best For:- Time series data
- Trend analysis
- Multiple metrics over time
- Multiple data series
- Smooth curves or straight lines
- Area fill option
- Custom date ranges
- Monthly revenue trends
- Census over time
- Budget vs actual by month
- Employee turnover rate
Pie Charts
Best For:- Part-to-whole relationships
- Percentage breakdowns
- Simple category proportions
- Percentage labels
- Legend with values
- Slice highlighting on hover
- Donut chart variant
- Revenue by funding source
- Expense allocation by category
- Resident demographics
- Staff distribution by department
Area Charts
Best For:- Stacked time series
- Cumulative totals
- Multiple categories over time
- Stacked or overlapping areas
- Transparency control
- Multiple series
- Gradient fills
- Cumulative admissions
- Stacked revenue sources
- Multi-site census comparison
- Layered expense categories
Table Visualizations
Best For:- Detailed data listings
- Sortable columns
- Precise values
- Sorting by column
- Search/filter
- Pagination
- Export to CSV
- Conditional formatting
Creating Chart Widgets
From Dashboard
- Go to Dashboard
- Click Add Widget
- Select Chart Widget
- Configure:
- Data Source: Select report or table
- Chart Type: Bar, Line, Pie, Area
- Dimensions: X-axis, Y-axis, grouping
- Filters: Date range, categories
- Title: Widget name
- Preview chart
- Save to dashboard
From Report Builder
- Go to Reports → Create Report
- Add data query (SQL or visual builder)
- Click Add Visualization
- Select chart type
- Map data columns to chart axes
- Configure appearance
- Save report with embedded chart
Chart Configuration
Data Mapping
Map your data columns to chart elements: Bar Chart:- Category (X-axis): Text column (e.g., “Department Name”)
- Value (Y-axis): Numeric column (e.g., “Total Expenses”)
- Series (Optional): Grouping column (e.g., “Month”)
- Date (X-axis): Date/timestamp column
- Value (Y-axis): Numeric column
- Series (Optional): Multiple metric lines
- Label: Category names
- Value: Numeric values
- Percentage: Auto-calculated
Appearance Options
Customize chart appearance:Colors
- Palette: Choose from predefined color schemes
- Custom: Define specific colors per series
- Theme: Auto-adapt to light/dark mode
Labels
- Axis Titles: X and Y axis labels
- Data Labels: Show values on chart
- Legend: Position (top, bottom, right) or hide
Grid
- Grid Lines: Horizontal, vertical, or both
- Grid Color: Custom or theme color
- Tick Marks: Spacing and format
Animation
- On Load: Fade in, slide in, or none
- On Update: Smooth transition or instant
- Duration: Animation speed (ms)
Interactive Features
Hover Tooltips
Charts show detailed information on hover:- Exact values
- Percentage (for pie charts)
- Multiple series values (for stacked charts)
- Custom formatting (currency, dates)
Click Actions
Click chart elements to:- Drill Down: View detailed data
- Filter Dashboard: Update other widgets
- Navigate: Go to related report or page
- Open Details: Show modal with full data
Zoom and Pan
Time series charts support:- Zoom: Mouse wheel or pinch gesture
- Pan: Drag to move along timeline
- Reset: Button to return to full view
Legend Interaction
Click legend items to:- Show/Hide Series: Toggle visibility
- Isolate: Show only that series
- Highlight: Emphasize in chart
Data Refresh
Automatic Refresh
Charts refresh automatically:- Real-time: Every 30 seconds (websockets)
- Live: Every 5 minutes (polling)
- Standard: On page load only
Manual Refresh
Force immediate refresh:- Click Refresh button on widget
- Or use keyboard shortcut:
Cmd+R/Ctrl+R
Cache Control
Control data caching:- No Cache: Always fetch fresh data
- 5 Minutes: Cache for 5 min
- 1 Hour: Cache for 1 hour
- 1 Day: Cache for 1 day
Exporting Charts
Export Formats
Export charts as:- PNG: High-resolution image
- SVG: Vector graphic (scalable)
- PDF: Single page document
- CSV: Underlying data only
- Click ⋯ menu on chart widget
- Select Export
- Choose format
- Download file
Embedding
Embed charts in other applications:- Click ⋯ menu on chart
- Select Embed
- Copy embed code:
- iFrame: HTML embed
- Image URL: Direct image link
- API Endpoint: JSON data
Dashboard Integration
Chart Widgets
Add chart widgets to dashboard:- Fixed size or responsive
- Drag to rearrange
- Resize by dragging corners
- Group related charts
Dashboard Filters
Apply global filters that affect all charts:- Date Range: Last 7 days, last month, custom
- Site: All sites or specific
- Department: Filter by department
- Custom: Any report parameter
Layout Templates
Pre-built dashboard layouts: Executive Summary:- KPI cards (top row)
- Line chart (revenue trend)
- Pie chart (expense breakdown)
- Bar chart (site comparison)
- Budget vs actual line chart
- Expense by category pie chart
- Cash flow area chart
- Variance table
- Census line chart
- Occupancy by site bar chart
- Admissions vs discharges line chart
- Length of stay histogram
Performance Optimization
Large Datasets
For charts with 1000+ data points:- Sampling: Display representative subset
- Aggregation: Group by week/month instead of day
- Pagination: Load data in chunks
- Lazy Loading: Load charts only when visible
Responsive Design
Charts adapt to screen size:- Mobile: Simplified view, fewer labels
- Tablet: Medium detail
- Desktop: Full detail and interactivity
Caching Strategy
Optimize with smart caching:- Cache expensive queries (1+ second)
- Invalidate on data changes
- Use stale-while-revalidate pattern
Best Practices
- Choose Right Chart Type: Match data to chart type
- Limit Series: 5-7 series max for readability
- Clear Labels: Use descriptive axis titles
- Consistent Colors: Use organization color scheme
- Avoid 3D: Stick to 2D for accuracy
- Show Zero Baseline: Bar/line charts should start at zero
- Sort Data: Order by value (descending) for bars
- Limit Pie Slices: 5-7 max, group “Other”
- Use Annotations: Mark important events/thresholds
- Test Mobile: Ensure charts work on small screens
Chart Examples
Example 1: Revenue Trend
Chart Type: Line ChartData Source: FA transactions
Configuration:
- X-axis: Month (Jan - Dec)
- Y-axis: Total Revenue
- Series: Grant Revenue, Service Revenue, Donations
- Date Range: Last 12 months
Example 2: Bed Occupancy by Site
Chart Type: Bar ChartData Source: RH census
Configuration:
- X-axis: Site Name
- Y-axis: Occupancy Percentage
- Color: Green (>80%), Yellow (60-80%), Red (<60%)
Example 3: Expense Allocation
Chart Type: Pie ChartData Source: FA expenses
Configuration:
- Label: Expense Category
- Value: Total Amount
- Show Percentage: Yes
Advanced Features
Calculated Fields
Create new metrics from existing data:- Variance: Budget - Actual
- Percentage: (Actual / Budget) * 100
- Growth Rate: ((Current - Previous) / Previous) * 100
- Running Total: SUM(amount) OVER (ORDER BY date)
Conditional Formatting
Color chart elements based on rules:- Red if variance > 10%
- Yellow if occupancy < 80%
- Green if revenue meets target
Drill-Through Reports
Click chart element → view detailed report:- Bar chart bar → Transaction list
- Line chart point → Daily breakdown
- Pie chart slice → Category details
Chart Combinations
Combine multiple chart types:- Bar + Line: Expenses (bars) + Budget (line)
- Area + Line: Cumulative (area) + Daily (line)
- Dual Y-axis: Revenue ($) + Occupancy (%)
Troubleshooting
Chart Not Displaying
Check:- Data query returns results
- Columns mapped correctly
- No null values in key fields
- Browser console for errors
Poor Performance
Solutions:- Reduce date range
- Aggregate data (monthly vs daily)
- Add database indexes
- Enable caching
Incorrect Values
Check:- Data filters applied correctly
- Timezone conversions
- Currency formatting
- Aggregation function (SUM vs AVG)
Chart Looks Wrong on Mobile
Solutions:- Use responsive chart type
- Reduce data points for mobile
- Simplify labels
- Test on actual device
Related Documentation
Version: 1.0.0
Last Updated: 2025-11-29