$(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: [[1393632000000,1.61907],[1393718400000,1.61907],[1393804800000,1.61907],[1393891200000,1.65405],[1393977600000,1.6231],[1394064000000,1.57648],[1394150400000,1.56855],[1394236800000,1.55018],[1394323200000,1.55018],[1394409600000,1.55018],[1394496000000,1.55018],[1394582400000,1.56303],[1394668800000,1.55549],[1394755200000,1.59991],[1394841600000,1.60453],[1394928000000,1.60453],[1395014400000,1.60453],[1395100800000,1.63862],[1395187200000,1.6672],[1395273600000,1.65899],[1395360000000,1.66206],[1395446400000,1.67881],[1395532800000,1.67881],[1395619200000,1.67881],[1395705600000,1.71174],[1395792000000,1.74856],[1395878400000,1.76643],[1395964800000,1.80603],[1396051200000,1.82796],[1396137600000,1.82796],[1396224000000,1.82796]], 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: [[1393632000000, 1.619067],[1393632000000, 1.619067],[1393718400000, 1.619067],[1393804800000, 1.619067],[1393891200000, 1.654047],[1393977600000, 1.623100],[1394064000000, 1.576481],[1394150400000, 1.568549],[1394236800000, 1.550176],[1394323200000, 1.550176],[1394409600000, 1.550176],[1394496000000, 1.550176],[1394582400000, 1.563032],[1394668800000, 1.555488],[1394755200000, 1.599915],[1394841600000, 1.604527],[1394928000000, 1.604527],[1395014400000, 1.604527],[1395100800000, 1.638624],[1395187200000, 1.667202],[1395273600000, 1.658988],[1395360000000, 1.662061],[1395446400000, 1.678807],[1395532800000, 1.678807],[1395619200000, 1.678807],[1395705600000, 1.711741],[1395792000000, 1.748558],[1395878400000, 1.766430],[1395964800000, 1.806026],[1396051200000, 1.827959],[1396137600000, 1.827959],[1396224000000, 1.827959]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });