• Open in:

Multi-panel horizon chart

This demo shows how you can utilize Stock Chart’s multiple synced panels feature to implement a full-fledged Horizon Chart.

It uses addInitHandler() function to execute custom code before chart initializes. The code takes raw data (Yahoo Finance) and creates related chart config based on it:

  • Calculates data for bands and updates the data provider
  • Creates panels and graphs for each symbol

Demo source