Chart Composer

Chart Composer is DataForeman’s powerful charting tool for visualizing and analyzing historical time-series data. Create custom charts, compare multiple data points, and save your configurations for reuse.

Chart Composer with OPCUA data

Overview

Chart Composer provides:

  • Time-Series Visualization: Plot data over time with zoom and pan
  • Multiple Tags: Display up to 50 tags on a single chart
  • Real-Time Updates: Live mode for streaming data
  • Interactive Analysis: Crosshair, zoom, and data point inspection
  • Saved Charts: Create chart templates for reuse in dashboards
  • Folder Organization: Organize charts into logical groups
  • Export Options: Download chart data as CSV

Interface Components

Chart Area

The main visualization area where your data is displayed:

  • Time Axis (X): Horizontal axis showing time range
  • Value Axis (Y): Vertical axis showing data values (auto-scaling or manual)
  • Legend: Shows all plotted tags with colors and current values
  • Crosshair: Interactive tool for precise value reading

Toolbar

Located above the chart:

  • Compact Mode: Minimalist view with chart only
  • Chart Preferences: Opens configuration panel with 5 tabs (Query List, Series, Display, Axes & Scaling, References)
  • Crosshair Toggle: Enable/disable precision cursor
  • Auto Refresh: Enable/disable automatic chart updates
  • Zoom Controls: Zoom in, zoom out, reset view
Chart toolbar with controls

Chart Preferences Panel

Click the Preferences button in the toolbar to access configuration options organized in tabs:

Query List Tab:

  • Connection & Tag Selection: Select a connection, browse and add tags to the chart (up to 50 tags)
  • Query Controls: Configure time range mode (Fixed/Rolling/Shifted), set time ranges, remove tags
  • Query Optimization: Smart Compression toggle and Max Data Points setting

Series Tab:

  • Configure individual tag display settings: alias, color, line style, axis assignment
  • Show/hide individual tags
  • Adjust line width and point markers per tag

Display Tab:

  • Chart theme and background settings
  • Legend position and visibility
  • Grid lines configuration
  • Animation settings

Axes & Scaling Tab:

  • Add, edit, or remove Y-axes
  • Configure axis orientation (left/right)
  • Set auto-scaling or fixed min/max values
  • Choose time tick density

References Tab:

  • Add horizontal reference lines
  • Set reference line values and colors
  • Add labels to reference lines

Points Panel

Collapsible panel below the chart:

  • Shows all data points returned from the query
  • Organize data points by combining by time/fill-in nearest
  • Export data as CSV

Saved Charts Panel

Right sidebar for managing saved charts:

  • Browse existing saved charts
  • Load charts into composer
  • Create new chart folders

Creating a Chart

Step 1: Add Tags

  1. Click the Preferences button in the toolbar above the chart
  2. In the Query List tab, select a connection from the dropdown in the Connection & Tag Selection section
  3. Browse or search for tags you want to chart
  4. Select tags using checkboxes (up to 50 tags)
  5. Click Add to Chart button to add selected tags to your chart
Tag selection interface showing OPCUA tags

Note: System tags cannot be mixed with tags from other connections on the same chart, as they are stored in different database tables. This limitation will be addressed in a future release. To chart system tags alongside device tags, create separate charts and use dashboards to view them together.

Step 2: Configure Time Range

In the Query Controls section of the Query List tab, choose your time range mode:

  • Fixed: Specify exact start and end date/times using date pickers
  • Rolling: Show last N mins/hours/days that updates when you query (e.g., “Last 24 Hours from now”)
  • Shifted: Show a past time window (e.g., “24 hours starting from 1 day ago”)

For Fixed mode, use the date pickers to set start and end times. For Rolling/Shifted modes, set the duration in minutes using quick preset buttons or the duration field.

Query List with time range controls

Step 3: Query Data

  1. Click the Query button in the Query Controls section
  2. Data loads and displays on the chart
  3. Close the Preferences panel to see the full chart
  4. Use zoom controls to focus on specific periods

Step 4: Optimize Performance (Optional)

In the Query Controls section, configure query optimization:

  • Smart Compression: When enabled, intelligently samples data using the Min/Max Envelope algorithm while preserving peaks and valleys
  • Max Data Points: Set the maximum number of data points to return (100-50,000)
    • With Smart Compression ON: Points distributed proportionally based on tag poll rates
    • With Smart Compression OFF: Points distributed evenly across tags

Step 5: Save Chart

  1. Click Save Chart button (or the save icon if unsaved changes are present)
  2. Enter a chart name and description
  3. Optionally select a folder in the Saved Charts panel
  4. Click Save

Chart Features

Interactive Analysis

Zoom and Pan:

  • Mouse Wheel: Zoom in/out on time axis
  • Click and Drag: Pan left/right through time
  • Box Zoom: Click and drag on chart area to zoom to selection
  • Reset: Click reset button to restore original view

Crosshair Mode:

  • Enable crosshair for precise value reading
  • Hover over chart to see exact time and values
  • Values appear in legend for all tags at cursor time
  • Useful for comparing multiple tags at specific moments

Data Point Inspection:

  • Click any data point to see details
  • View exact timestamp and value
  • See data quality indicator
  • Access tag metadata

Auto Refresh

Automatic chart updates:

  1. Enable Auto Refresh toggle in toolbar
  2. Chart automatically re-queries at the configured interval
  3. Choose refresh interval: 5s, 10s, 30s, 1m, 5m, or custom
  4. Useful for monitoring real-time data in Rolling or Shifted time modes
  5. Disable to stop automatic updates and analyze historical data

Note: Auto Refresh re-runs the entire query. For Rolling mode, this shows the latest data window. For Fixed mode, it refreshes the same time range.

Tag and Axis Configuration

Click the Preferences button to access advanced chart configuration:

Series Tab:

  • Configure individual tag settings: alias, color, line style, line width
  • Assign tags to specific Y-axes
  • Show/hide individual tags without removing them
  • Adjust point markers and interpolation methods per tag
Series configuration panel

Axes & Scaling Tab:

  • Add multiple Y-axes for tags with different units or scales
  • Configure axis orientation (left/right)
  • Set auto-scaling or fixed min/max values

Display Tab:

  • Customize chart appearance and theme
  • Enable/disable grid lines (horizontal, vertical, or both)
  • Adjust animation and transition settings

References Tab:

  • Add horizontal reference lines for targets or thresholds
  • Set reference line values, colors, and labels
  • Useful for marking limits, setpoints, or specification ranges

Organizing Charts

Folders

Keep charts organized:

  1. Click Create new folder in Saved Charts panel
  2. Name your folder (e.g., “Production”, “Quality”, “Maintenance”)
  3. Move charts into folders by clicking the 3-dot menu next to each chart in the Saved Charts panel and selecting “Move to Folder”
  4. Create subfolders for deeper organization

Advanced Features

Min/Max Envelope

For high-frequency data:

  • Automatically compresses data while preserving extremes
  • Shows min/max range as shaded area or error bars
  • Reduces chart clutter for long time ranges
  • Maintains visibility of peaks and valleys

Write-on-Change Visualization

For sparse data:

  • Extends last known value as horizontal line
  • Shows when data point changes vs when sampled
  • Ideal for setpoints and status values
  • Configurable per tag

Data Aggregation

For long time periods:

  • Automatic bucketing into time intervals when Smart Compression is enabled
  • Preserves min/max extremes in each time bucket
  • Reduces chart clutter for wide time ranges
  • Maintains visibility of peaks and valleys critical for troubleshooting

Exporting Data

CSV Export

Download chart data from the Points panel:

  1. Query the data you want to export
  2. Expand the Points panel below the chart
  3. Configure data organization:
    • Combine By: Time (single timestamp column) or Tag (one row per timestamp+tag)
    • Fill-in: Nearest (fill gaps with nearest value) or None (leave gaps empty)
  4. Click Export Raw to download all queried data points
  5. Or click Export As Shown to download only data matching your current view settings
  6. Open the CSV file in Excel or analysis tools

Export Options:

  • Raw Export: All data points as returned from the database
  • As Shown Export: Filtered/organized data matching your Points panel configuration

Performance Tips

Optimizing Chart Performance

  1. Limit Time Range:

    • Query only the time period you need
    • Use zoom for detailed analysis of subsets
  2. Reduce Tag Count:

    • Keep to 10 or fewer tags per chart for best performance
    • Use multiple charts for large datasets
  3. Appropriate Aggregation:

    • For wide time ranges, use hourly or daily buckets
    • Raw data works well for short periods (< 24 hours)
  4. Browser Performance:

    • Close unused charts
    • Use hardware acceleration in browser
    • Consider using Compact Mode for smoother rendering

Troubleshooting

No Data Displayed

  1. Check Time Range: Verify data exists for selected period
  2. Verify Tags: Ensure tags are actively collecting data
  3. Connection Status: Check device connectivity
  4. Query Errors: Look for error messages in browser console

Chart Performance Issues

  1. Reduce Data Points: Use aggregation for long periods
  2. Limit Tags: Remove unnecessary tags from chart
  3. Close Other Charts: Free up browser memory
  4. Update Browser: Use latest version of Chrome, Firefox, or Edge

Data Quality Issues

  1. Check Source: Verify device is sending good data
  2. Quality Indicators: Look for “Bad” or “Uncertain” markers
  3. Connection Logs: Review connectivity logs in Diagnostics
  4. PLC Status: Ensure PLC is in RUN mode

Best Practices

Chart Design

  1. Use Meaningful Names: “Line 1 Temperature Trend” vs “Chart 1”
  2. Color Coding: Consistent colors for similar tag types
  3. Tag Grouping: Related tags on same chart
  4. Time Ranges: Match analysis goals (hour for troubleshooting, week for trends)

Analysis Workflows

  1. Wide to Narrow: Start with broad time range, zoom to details
  2. Comparison: Use multiple Y-axes for different units
  3. Annotation: Document findings in chart descriptions
  4. Sharing: Save charts to folders accessible to your team

Data Quality

  1. Regular Review: Check charts daily for anomalies
  2. Validation: Compare with other data sources
  3. Calibration: Note when sensors are calibrated
  4. Maintenance: Document equipment maintenance in chart notes

Next Steps