$(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: 'Курс TMM, грн'}, 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: 'Курс TMM', data: [[1243814400000,2.67316],[1243900800000,2.67035],[1243987200000,2.6707],[1244073600000,2.67017],[1244160000000,2.67091],[1244246400000,2.67084],[1244332800000,2.67084],[1244419200000,2.67084],[1244505600000,2.67084],[1244592000000,2.67021],[1244678400000,2.67017],[1244764800000,2.67028],[1244851200000,2.67067],[1244937600000,2.67067],[1245024000000,2.67067],[1245110400000,2.67067],[1245196800000,2.67067],[1245283200000,2.67333],[1245369600000,2.67277],[1245456000000,2.67256],[1245542400000,2.67256],[1245628800000,2.67256],[1245715200000,2.67028],[1245801600000,2.67056],[1245888000000,2.67491],[1245974400000,2.67667],[1246060800000,2.6773],[1246147200000,2.6773],[1246233600000,2.6773],[1246320000000,2.6773]], 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: [[1243814400000, 2.673158],[1243814400000, 2.673158],[1243900800000, 2.670351],[1243987200000, 2.670702],[1244073600000, 2.670175],[1244160000000, 2.670912],[1244246400000, 2.670842],[1244332800000, 2.670842],[1244419200000, 2.670842],[1244505600000, 2.670842],[1244592000000, 2.670211],[1244678400000, 2.670175],[1244764800000, 2.670281],[1244851200000, 2.670667],[1244937600000, 2.670667],[1245024000000, 2.670667],[1245110400000, 2.670667],[1245196800000, 2.670667],[1245283200000, 2.673333],[1245369600000, 2.672772],[1245456000000, 2.672561],[1245542400000, 2.672561],[1245628800000, 2.672561],[1245715200000, 2.670281],[1245801600000, 2.670561],[1245888000000, 2.674912],[1245974400000, 2.676667],[1246060800000, 2.677298],[1246147200000, 2.677298],[1246233600000, 2.677298],[1246320000000, 2.677298]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });