$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1351728000000,8.59995],[1351814400000,8.59089],[1351900800000,8.50742],[1351987200000,8.50742],[1352073600000,8.50742],[1352160000000,8.4661],[1352246400000,8.47291],[1352332800000,8.44416],[1352419200000,8.44243],[1352505600000,8.41738],[1352592000000,8.41738],[1352678400000,8.41738],[1352764800000,8.44247],[1352851200000,8.4243],[1352937600000,8.44842],[1353024000000,8.46692],[1353110400000,8.45962],[1353196800000,8.45962],[1353283200000,8.45962],[1353369600000,8.4688],[1353456000000,8.49717],[1353542400000,8.50015],[1353628800000,8.55573],[1353715200000,8.56279],[1353801600000,8.56279],[1353888000000,8.56279],[1353974400000,8.60213],[1354060800000,8.60228],[1354147200000,8.56293],[1354233600000,8.62418]], 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: [[1351728000000, 8.599954],[1351728000000, 8.599954],[1351814400000, 8.590886],[1351900800000, 8.507417],[1351987200000, 8.507417],[1352073600000, 8.507417],[1352160000000, 8.466100],[1352246400000, 8.472911],[1352332800000, 8.444159],[1352419200000, 8.442432],[1352505600000, 8.417384],[1352592000000, 8.417384],[1352678400000, 8.417384],[1352764800000, 8.442470],[1352851200000, 8.424301],[1352937600000, 8.448415],[1353024000000, 8.466925],[1353110400000, 8.459623],[1353196800000, 8.459623],[1353283200000, 8.459623],[1353369600000, 8.468798],[1353456000000, 8.497165],[1353542400000, 8.500155],[1353628800000, 8.555728],[1353715200000, 8.562791],[1353801600000, 8.562791],[1353888000000, 8.562791],[1353974400000, 8.602130],[1354060800000, 8.602281],[1354147200000, 8.562932],[1354233600000, 8.624184]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });