$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1330560000000,15.3708],[1330646400000,15.2189],[1330732800000,15.1192],[1330819200000,15.1192],[1330905600000,15.1192],[1330992000000,15.1291],[1331078400000,15.0503],[1331164800000,15.0181],[1331251200000,15.0181],[1331337600000,15.0181],[1331424000000,15.0181],[1331510400000,15.0181],[1331596800000,15.04],[1331683200000,14.967],[1331769600000,14.973],[1331856000000,14.9608],[1331942400000,15.026],[1332028800000,15.026],[1332115200000,15.026],[1332201600000,15.0693],[1332288000000,15.1286],[1332374400000,15.1531],[1332460800000,15.0901],[1332547200000,15.1739],[1332633600000,15.1739],[1332720000000,15.1739],[1332806400000,15.2156],[1332892800000,15.2453],[1332979200000,15.2042],[1333065600000,15.1277],[1333152000000,15.2344]], 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: [[1330560000000, 15.370824],[1330560000000, 15.370824],[1330646400000, 15.218859],[1330732800000, 15.119203],[1330819200000, 15.119203],[1330905600000, 15.119203],[1330992000000, 15.129135],[1331078400000, 15.050303],[1331164800000, 15.018057],[1331251200000, 15.018057],[1331337600000, 15.018057],[1331424000000, 15.018057],[1331510400000, 15.018057],[1331596800000, 15.039956],[1331683200000, 14.967003],[1331769600000, 14.973009],[1331856000000, 14.960834],[1331942400000, 15.026006],[1332028800000, 15.026006],[1332115200000, 15.026006],[1332201600000, 15.069281],[1332288000000, 15.128629],[1332374400000, 15.153053],[1332460800000, 15.090085],[1332547200000, 15.173861],[1332633600000, 15.173861],[1332720000000, 15.173861],[1332806400000, 15.215576],[1332892800000, 15.245323],[1332979200000, 15.204180],[1333065600000, 15.127656],[1333152000000, 15.234384]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });