$(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: 'Курс TRY, грн'}, 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: 'Курс TRY', data: [[1136246400000,3.7412],[1136332800000,3.7412],[1136419200000,3.7412],[1136505600000,3.7775],[1136592000000,3.77416],[1136678400000,3.77416],[1136764800000,3.77416],[1136851200000,3.77416],[1136937600000,3.73602],[1137024000000,3.76585],[1137110400000,3.7734],[1137196800000,3.76219],[1137283200000,3.76219],[1137369600000,3.76219],[1137456000000,3.78781],[1137542400000,3.78069],[1137628800000,3.77738],[1137715200000,3.77421],[1137801600000,3.77826],[1137888000000,3.77826],[1137974400000,3.77826],[1138060800000,3.81062],[1138147200000,3.82081],[1138233600000,3.81825],[1138320000000,3.81286],[1138406400000,3.80988],[1138492800000,3.80988],[1138579200000,3.80988],[1138665600000,3.8015]], 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: [[1136246400000, 3.741199],[1136246400000, 3.741199],[1136332800000, 3.741199],[1136419200000, 3.741199],[1136505600000, 3.777500],[1136592000000, 3.774158],[1136678400000, 3.774158],[1136764800000, 3.774158],[1136851200000, 3.774158],[1136937600000, 3.736015],[1137024000000, 3.765848],[1137110400000, 3.773404],[1137196800000, 3.762188],[1137283200000, 3.762188],[1137369600000, 3.762188],[1137456000000, 3.787813],[1137542400000, 3.780690],[1137628800000, 3.777375],[1137715200000, 3.774214],[1137801600000, 3.778264],[1137888000000, 3.778264],[1137974400000, 3.778264],[1138060800000, 3.810624],[1138147200000, 3.820814],[1138233600000, 3.818247],[1138320000000, 3.812859],[1138406400000, 3.809880],[1138492800000, 3.809880],[1138579200000, 3.809880],[1138665600000, 3.801502]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });