$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1393632000000,9.6994],[1393718400000,9.6994],[1393804800000,9.6994],[1393891200000,9.9924],[1393977600000,9.7241],[1394064000000,9.4489],[1394150400000,9.3879],[1394236800000,9.2359],[1394323200000,9.2359],[1394409600000,9.2359],[1394496000000,9.2359],[1394582400000,9.2975],[1394668800000,9.2823],[1394755200000,9.4759],[1394841600000,9.6007],[1394928000000,9.6007],[1395014400000,9.6007],[1395100800000,9.7568],[1395187200000,9.9598],[1395273600000,9.9178],[1395360000000,10.1092],[1395446400000,10.1965],[1395532800000,10.1965],[1395619200000,10.1965],[1395705600000,10.3762],[1395792000000,10.5758],[1395878400000,10.6721],[1395964800000,10.8502],[1396051200000,10.9546],[1396137600000,10.9546],[1396224000000,10.9546]], 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: [[1393632000000, 9.699400],[1393632000000, 9.699400],[1393718400000, 9.699400],[1393804800000, 9.699400],[1393891200000, 9.992400],[1393977600000, 9.724100],[1394064000000, 9.448900],[1394150400000, 9.387900],[1394236800000, 9.235900],[1394323200000, 9.235900],[1394409600000, 9.235900],[1394496000000, 9.235900],[1394582400000, 9.297500],[1394668800000, 9.282300],[1394755200000, 9.475900],[1394841600000, 9.600700],[1394928000000, 9.600700],[1395014400000, 9.600700],[1395100800000, 9.756800],[1395187200000, 9.959800],[1395273600000, 9.917800],[1395360000000, 10.109200],[1395446400000, 10.196500],[1395532800000, 10.196500],[1395619200000, 10.196500],[1395705600000, 10.376200],[1395792000000, 10.575800],[1395878400000, 10.672100],[1395964800000, 10.850200],[1396051200000, 10.954600],[1396137600000, 10.954600],[1396224000000, 10.954600]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });