$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1170288000000,3.28452],[1170374400000,3.29298],[1170460800000,3.28854],[1170547200000,3.28854],[1170633600000,3.28854],[1170720000000,3.29104],[1170806400000,3.29453],[1170892800000,3.29404],[1170979200000,3.29241],[1171065600000,3.29432],[1171152000000,3.29432],[1171238400000,3.29432],[1171324800000,3.28239],[1171411200000,3.27691],[1171497600000,3.28579],[1171584000000,3.2893],[1171670400000,3.29574],[1171756800000,3.29574],[1171843200000,3.29574],[1171929600000,3.29409],[1172016000000,3.29375],[1172102400000,3.29212],[1172188800000,3.29149],[1172275200000,3.29361],[1172361600000,null],[1172448000000,3.29361],[1172534400000,3.30472],[1172620800000,3.31045]], 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: [[1170288000000, 3.284516],[1170288000000, 3.284516],[1170374400000, 3.292983],[1170460800000, 3.288537],[1170547200000, 3.288537],[1170633600000, 3.288537],[1170720000000, 3.291043],[1170806400000, 3.294529],[1170892800000, 3.294041],[1170979200000, 3.292409],[1171065600000, 3.294315],[1171152000000, 3.294315],[1171238400000, 3.294315],[1171324800000, 3.282386],[1171411200000, 3.276913],[1171497600000, 3.285790],[1171584000000, 3.289298],[1171670400000, 3.295739],[1171756800000, 3.295739],[1171843200000, 3.295739],[1171929600000, 3.294089],[1172016000000, 3.293751],[1172102400000, 3.292117],[1172188800000, 3.291491],[1172275200000, 3.293609],[1172448000000, 3.293609],[1172534400000, 3.304724],[1172620800000, 3.310450]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });