$(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: 'Курс LTL, грн'}, 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: 'Курс LTL', data: [[1364774400000,2.96427],[1364860800000,2.96427],[1364947200000,2.97237],[1365033600000,2.9696],[1365120000000,2.96728],[1365206400000,2.99645],[1365292800000,2.99645],[1365379200000,2.99645],[1365465600000,3.01474],[1365552000000,3.01867],[1365638400000,3.02932],[1365724800000,3.03696],[1365811200000,3.02145],[1365897600000,3.02145],[1365984000000,3.02145],[1366070400000,3.02816],[1366156800000,3.03927],[1366243200000,3.03927],[1366329600000,3.01983],[1366416000000,3.03603],[1366502400000,3.03603],[1366588800000,3.03603],[1366675200000,3.01798],[1366761600000,3.0071],[1366848000000,3.0108],[1366934400000,3.02793],[1367020800000,3.00918],[1367107200000,3.00918],[1367193600000,3.00918],[1367280000000,3.03557]], 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: [[1364774400000, 2.964271],[1364774400000, 2.964271],[1364860800000, 2.964271],[1364947200000, 2.972374],[1365033600000, 2.969596],[1365120000000, 2.967281],[1365206400000, 2.996449],[1365292800000, 2.996449],[1365379200000, 2.996449],[1365465600000, 3.014737],[1365552000000, 3.018672],[1365638400000, 3.029321],[1365724800000, 3.036960],[1365811200000, 3.021450],[1365897600000, 3.021450],[1365984000000, 3.021450],[1366070400000, 3.028164],[1366156800000, 3.039275],[1366243200000, 3.039275],[1366329600000, 3.019830],[1366416000000, 3.036034],[1366502400000, 3.036034],[1366588800000, 3.036034],[1366675200000, 3.017978],[1366761600000, 3.007098],[1366848000000, 3.010802],[1366934400000, 3.027932],[1367020800000, 3.009181],[1367107200000, 3.009181],[1367193600000, 3.009181],[1367280000000, 3.035571]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });