$(document).ready(function () { chart = new Highcharts.StockChart({ chart: { renderTo: 'chart', type: 'line', animation: false, showAxes: true, height: 500 }, xAxis: { ordinal: false, type: 'datetime', showEmpty: true, gridLineWidth: 1, gridLineDashStyle: 'dot', ordinal: false }, yAxis: { title: {text: 'Курс RUB, грн'}, lineWidth: 3, gridLineWidth: 1, gridLineDashStyle: 'dash', ordinal: false }, plotOptions: { series: {connectNulls: true, shadow: false}, spline: {marker: {enabled: true}} }, tooltip: {valueDecimals: 8, xDateFormat: '%d %b %Y', shared: true}, series: [ { name: 'Курс RUB', data: [[1257033600000,0.27516],[1257120000000,0.27516],[1257206400000,0.27392],[1257292800000,0.27405],[1257379200000,0.27416],[1257465600000,0.27508],[1257552000000,0.27547],[1257638400000,0.27547],[1257724800000,0.27547],[1257811200000,0.27696],[1257897600000,0.27802],[1257984000000,0.27845],[1258070400000,0.27891],[1258156800000,0.27731],[1258243200000,0.27731],[1258329600000,0.27731],[1258416000000,0.2788],[1258502400000,0.27863],[1258588800000,0.27827],[1258675200000,0.27795],[1258761600000,0.2769],[1258848000000,0.2769],[1258934400000,0.2769],[1259020800000,0.27744],[1259107200000,0.27697],[1259193600000,0.27734],[1259280000000,0.2764],[1259366400000,0.26765],[1259452800000,0.26765],[1259539200000,0.26765]], tooltip: {valueSuffix: ' грн'}, type: 'area', step: true, color: '#888888', fillColor: { linearGradient: {x1: 0, y1: 0, x2: 0, y2: 1}, stops: [[0, '#CCCCCC'], [1, 'rgba(50,50,50,0)']] }, threshold: null }, { name: 'Среднее за период', data: [[1257033600000, 0.275160],[1257033600000, 0.275160],[1257120000000, 0.275160],[1257206400000, 0.273920],[1257292800000, 0.274050],[1257379200000, 0.274160],[1257465600000, 0.275080],[1257552000000, 0.275470],[1257638400000, 0.275470],[1257724800000, 0.275470],[1257811200000, 0.276960],[1257897600000, 0.278020],[1257984000000, 0.278450],[1258070400000, 0.278910],[1258156800000, 0.277310],[1258243200000, 0.277310],[1258329600000, 0.277310],[1258416000000, 0.278800],[1258502400000, 0.278630],[1258588800000, 0.278270],[1258675200000, 0.277950],[1258761600000, 0.276900],[1258848000000, 0.276900],[1258934400000, 0.276900],[1259020800000, 0.277440],[1259107200000, 0.276970],[1259193600000, 0.277340],[1259280000000, 0.276400],[1259366400000, 0.267650],[1259452800000, 0.267650],[1259539200000, 0.267650]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });