$(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: [[1172707200000,3.56482],[1172793600000,3.52844],[1172880000000,3.53017],[1172966400000,3.53017],[1173052800000,3.53017],[1173139200000,3.46838],[1173225600000,3.51888],[1173312000000,3.52079],[1173398400000,3.52079],[1173484800000,3.52079],[1173571200000,3.52079],[1173657600000,3.52079],[1173744000000,3.5775],[1173830400000,3.55986],[1173916800000,3.5493],[1174003200000,3.58515],[1174089600000,3.586],[1174176000000,3.586],[1174262400000,3.586],[1174348800000,3.61748],[1174435200000,3.61967],[1174521600000,3.62276],[1174608000000,3.64505],[1174694400000,3.64204],[1174780800000,3.64204],[1174867200000,3.64204],[1174953600000,3.64979],[1175040000000,3.6359],[1175126400000,3.62172],[1175212800000,3.62553],[1175299200000,3.64432]], 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: [[1172707200000, 3.564817],[1172707200000, 3.564817],[1172793600000, 3.528437],[1172880000000, 3.530173],[1172966400000, 3.530173],[1173052800000, 3.530173],[1173139200000, 3.468379],[1173225600000, 3.518883],[1173312000000, 3.520794],[1173398400000, 3.520794],[1173484800000, 3.520794],[1173571200000, 3.520794],[1173657600000, 3.520794],[1173744000000, 3.577503],[1173830400000, 3.559858],[1173916800000, 3.549296],[1174003200000, 3.585148],[1174089600000, 3.585998],[1174176000000, 3.585998],[1174262400000, 3.585998],[1174348800000, 3.617476],[1174435200000, 3.619666],[1174521600000, 3.622755],[1174608000000, 3.645053],[1174694400000, 3.642045],[1174780800000, 3.642045],[1174867200000, 3.642045],[1174953600000, 3.649790],[1175040000000, 3.635902],[1175126400000, 3.621717],[1175212800000, 3.625530],[1175299200000, 3.644319]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });