$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1257033600000,1.40972],[1257120000000,1.40972],[1257206400000,1.40132],[1257292800000,1.37939],[1257379200000,1.40149],[1257465600000,1.41221],[1257552000000,1.40849],[1257638400000,1.40849],[1257724800000,1.40849],[1257811200000,1.42202],[1257897600000,1.42635],[1257984000000,1.43747],[1258070400000,1.42192],[1258156800000,1.4213],[1258243200000,1.4213],[1258329600000,1.4213],[1258416000000,1.43481],[1258502400000,1.42385],[1258588800000,1.43103],[1258675200000,1.4151],[1258761600000,1.40501],[1258848000000,1.40501],[1258934400000,1.40501],[1259020800000,1.42782],[1259107200000,1.42783],[1259193600000,1.43106],[1259280000000,1.41508],[1259366400000,1.40201],[1259452800000,1.40201],[1259539200000,1.40201]], 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: [[1257033600000, 1.409717],[1257033600000, 1.409717],[1257120000000, 1.409717],[1257206400000, 1.401325],[1257292800000, 1.379386],[1257379200000, 1.401486],[1257465600000, 1.412211],[1257552000000, 1.408489],[1257638400000, 1.408489],[1257724800000, 1.408489],[1257811200000, 1.422016],[1257897600000, 1.426353],[1257984000000, 1.437472],[1258070400000, 1.421924],[1258156800000, 1.421299],[1258243200000, 1.421299],[1258329600000, 1.421299],[1258416000000, 1.434805],[1258502400000, 1.423848],[1258588800000, 1.431033],[1258675200000, 1.415102],[1258761600000, 1.405007],[1258848000000, 1.405007],[1258934400000, 1.405007],[1259020800000, 1.427821],[1259107200000, 1.427832],[1259193600000, 1.431057],[1259280000000, 1.415078],[1259366400000, 1.402014],[1259452800000, 1.402014],[1259539200000, 1.402014]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });