Chart

View time series, instruments, and date sets on an interactive graph.

1. Overview

The Chart is one of the most-used tools in Hedgehog. It lets you visualize and compare time series data — stock prices, computed metrics, date sets, and more — on interactive XY charts with full control over renderers, axes, and annotations.

2. Getting Started

  1. Open Chart from the Start Menu or the Navigation Bar.
  2. Type a symbol (e.g., AAPL) in the expression bar at the bottom and press Enter.
  3. The instrument's closing price series appears on the chart.
  4. Click and drag on the chart to zoom into a date range. Right-click to reset the zoom.
  5. Add more datasets by typing additional symbols or expressions.

3. Expression Bar

The expression bar (code editor) is located at the bottom of the chart window. Press Ctrl+E to focus it from anywhere in the window.

4. Datasets and Series

Each entry in the expression bar creates a dataset on the chart. A dataset may contain one or more series (e.g., an OHLC dataset contains open, high, low, and close series).

5. Renderers

The renderer determines how a dataset is visualized. To change the renderer, click a dataset's label to select it, then choose a renderer from the Dataset ribbon tab.

Standard renderers

RendererDescription
LineStandard line chart connecting data points.
AreaFilled area under the line.
BarVertical bars for single-series datasets.
PointsScatter plot (points only, no connecting line).
CandlestickOHLC data as candlestick bars. Requires an OHLC dataset.
OHLCOpen-High-Low-Close as thin bars. Requires an OHLC dataset.
Category BarClustered bars for comparing multiple series side by side.

Multi-series renderers

RendererDescription
Stacked BarMultiple series stacked vertically as bars.
Stacked AreaMultiple series stacked as filled areas.
DifferenceFilled region between two series, colored by which is larger.
BandA filled range (e.g., upper/lower bounds) between two series.

Event renderers

RendererDescription
DividendMarks dividend payment events on the chart.
Stock SplitMarks stock split events.
SpinoffMarks corporate spinoff events.
DateSetRenders date set events as vertical markers or bands.

Hover over a renderer button to preview the change; move away to revert. Click to apply.

6. Subplots and Axes

A chart can have multiple subplots stacked vertically. All subplots share a common date (domain) axis but have independent range (value) axes.

Date axis

Range axis

7. Annotations

Annotations can be drawn directly on the chart or attached to a specific dataset.

AnnotationDescription
LineDraw a line between two points.
IntervalHighlight a date range with a shaded band.
TextText label with optional HHLang expression parameters.
ShapeDraw rectangles, ovals, or other shapes.
DrawFreeform drawing on the chart.
TrendlinesLinear regression trendline through data points.
% ChangeVertical marker showing percent change between two points on the Y axis.

8. Ribbon Tabs

Home

Export

See Exporting below.

Plot (contextual)

Appears when a subplot is selected. Controls subplot title, background color, domain axis range, and plot-level annotations.

Dataset (contextual)

Appears when a dataset is selected. Controls dataset name, renderer, annotations, metadata, and domain normalization.

Axis (contextual)

Appears when an axis is selected. Controls frequency, format, scale, range, and time zone.

9. Exporting

ActionDescription
Copy to ClipboardCopy all data as tab-delimited text (one date column, one column per series).
Copy Displayed Range to ClipboardSame, but limited to the visible date range.
Export to ExcelSave all data to an .xlsx file.
Export Displayed Range to ExcelSame, limited to the visible range.
Export as SpreadsheetCreate a new Spreadsheet document from the chart data.
Export Displayed Range as SpreadsheetSame, limited to the visible range.

10. Plot Settings

Each subplot exposes settings via the Plot ribbon tab:

11. Tips

12. See Also