Sandbox: JavaScript

Less Component Required

Be sure to include Behavior-UI's chart.less in your build.

JavaScript Library Required

In addition to the chart files in Behavior-UI, you will also need the behavior-ui fork of HighStock. Presently, only highstock.src is patched; that's all you need.

Basic Usage

Simple area spline chart.

<div data-behavior="Chart.Stock ToSource" class="chart" data-chart-stock-options="
  'url': '/sandbox/chart/three_lines'
" data-tosource-target="!.example-block .response"></div>