$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1330560000000,0.27516],[1330646400000,0.27269],[1330732800000,0.27267],[1330819200000,0.27267],[1330905600000,0.27267],[1330992000000,0.27273],[1331078400000,0.27123],[1331164800000,0.26928],[1331251200000,0.26928],[1331337600000,0.26928],[1331424000000,0.26928],[1331510400000,0.26928],[1331596800000,0.26919],[1331683200000,0.27059],[1331769600000,0.27053],[1331856000000,0.26989],[1331942400000,0.27199],[1332028800000,0.27199],[1332115200000,0.27199],[1332201600000,0.27325],[1332288000000,0.27379],[1332374400000,0.27338],[1332460800000,0.27306],[1332547200000,0.27159],[1332633600000,0.27159],[1332720000000,0.27159],[1332806400000,0.2732],[1332892800000,0.27588],[1332979200000,0.27457],[1333065600000,0.27272],[1333152000000,0.27236]], 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, 0.275160],[1330560000000, 0.275160],[1330646400000, 0.272690],[1330732800000, 0.272670],[1330819200000, 0.272670],[1330905600000, 0.272670],[1330992000000, 0.272730],[1331078400000, 0.271230],[1331164800000, 0.269280],[1331251200000, 0.269280],[1331337600000, 0.269280],[1331424000000, 0.269280],[1331510400000, 0.269280],[1331596800000, 0.269190],[1331683200000, 0.270590],[1331769600000, 0.270530],[1331856000000, 0.269890],[1331942400000, 0.271990],[1332028800000, 0.271990],[1332115200000, 0.271990],[1332201600000, 0.273250],[1332288000000, 0.273790],[1332374400000, 0.273380],[1332460800000, 0.273060],[1332547200000, 0.271590],[1332633600000, 0.271590],[1332720000000, 0.271590],[1332806400000, 0.273200],[1332892800000, 0.275880],[1332979200000, 0.274570],[1333065600000, 0.272720],[1333152000000, 0.272360]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });