$(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: [[1330560000000,6.41906],[1330646400000,6.39128],[1330732800000,6.38818],[1330819200000,6.38818],[1330905600000,6.38818],[1330992000000,6.35846],[1331078400000,6.32776],[1331164800000,6.33056],[1331251200000,6.33056],[1331337600000,6.33056],[1331424000000,6.33056],[1331510400000,6.33056],[1331596800000,6.33003],[1331683200000,6.3257],[1331769600000,6.30285],[1331856000000,6.3138],[1331942400000,6.33621],[1332028800000,6.33621],[1332115200000,6.33621],[1332201600000,6.34496],[1332288000000,6.32114],[1332374400000,6.32042],[1332460800000,6.30382],[1332547200000,6.31399],[1332633600000,6.31399],[1332720000000,6.31399],[1332806400000,6.33573],[1332892800000,6.3589],[1332979200000,6.35435],[1333065600000,6.34537],[1333152000000,6.35984]], 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, 6.419061],[1330560000000, 6.419061],[1330646400000, 6.391280],[1330732800000, 6.388177],[1330819200000, 6.388177],[1330905600000, 6.388177],[1330992000000, 6.358463],[1331078400000, 6.327762],[1331164800000, 6.330555],[1331251200000, 6.330555],[1331337600000, 6.330555],[1331424000000, 6.330555],[1331510400000, 6.330555],[1331596800000, 6.330030],[1331683200000, 6.325697],[1331769600000, 6.302853],[1331856000000, 6.313796],[1331942400000, 6.336213],[1332028800000, 6.336213],[1332115200000, 6.336213],[1332201600000, 6.344960],[1332288000000, 6.321139],[1332374400000, 6.320423],[1332460800000, 6.303820],[1332547200000, 6.313986],[1332633600000, 6.313986],[1332720000000, 6.313986],[1332806400000, 6.335732],[1332892800000, 6.358895],[1332979200000, 6.354351],[1333065600000, 6.345375],[1333152000000, 6.359845]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });