$(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: [[1301616000000,6.31704],[1301702400000,6.30884],[1301788800000,6.30884],[1301875200000,6.30884],[1301961600000,6.31845],[1302048000000,6.31629],[1302134400000,6.32014],[1302220800000,6.31929],[1302307200000,6.33525],[1302393600000,6.33525],[1302480000000,6.33525],[1302566400000,6.33749],[1302652800000,6.34009],[1302739200000,6.34715],[1302825600000,6.3742],[1302912000000,6.40301],[1302998400000,6.40301],[1303084800000,6.40301],[1303171200000,6.38135],[1303257600000,6.3875],[1303344000000,6.4275],[1303430400000,6.44694],[1303516800000,6.44694],[1303603200000,6.44694],[1303689600000,6.44694],[1303776000000,6.44694],[1303862400000,6.45508],[1303948800000,6.4622],[1304035200000,6.47794],[1304121600000,6.50175]], 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: [[1301616000000, 6.317044],[1301616000000, 6.317044],[1301702400000, 6.308842],[1301788800000, 6.308842],[1301875200000, 6.308842],[1301961600000, 6.318449],[1302048000000, 6.316293],[1302134400000, 6.320138],[1302220800000, 6.319287],[1302307200000, 6.335247],[1302393600000, 6.335247],[1302480000000, 6.335247],[1302566400000, 6.337495],[1302652800000, 6.340094],[1302739200000, 6.347149],[1302825600000, 6.374203],[1302912000000, 6.403006],[1302998400000, 6.403006],[1303084800000, 6.403006],[1303171200000, 6.381350],[1303257600000, 6.387505],[1303344000000, 6.427495],[1303430400000, 6.446939],[1303516800000, 6.446939],[1303603200000, 6.446939],[1303689600000, 6.446939],[1303776000000, 6.446939],[1303862400000, 6.455079],[1303948800000, 6.462195],[1304035200000, 6.477936],[1304121600000, 6.501750]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });