$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1406851200000,11.1251],[1406937600000,10.9553],[1407024000000,10.9553],[1407110400000,10.9553],[1407196800000,11.1508],[1407283200000,11.2591],[1407369600000,11.2817],[1407456000000,11.3542],[1407542400000,11.5311],[1407628800000,11.5311],[1407715200000,11.5311],[1407801600000,11.75],[1407888000000,11.995],[1407974400000,11.9731],[1408060800000,11.9855],[1408147200000,12.0605],[1408233600000,12.0605],[1408320000000,12.0605],[1408406400000,11.9938],[1408492800000,11.9063],[1408579200000,12.1212],[1408665600000,11.9727],[1408752000000,12.1907],[1408838400000,12.1907],[1408924800000,12.1907],[1409011200000,12.1907],[1409097600000,12.4718],[1409184000000,12.6685],[1409270400000,12.3202],[1409356800000,12.547]], 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: [[1406851200000, 11.125118],[1406851200000, 11.125118],[1406937600000, 10.955286],[1407024000000, 10.955286],[1407110400000, 10.955286],[1407196800000, 11.150808],[1407283200000, 11.259090],[1407369600000, 11.281678],[1407456000000, 11.354183],[1407542400000, 11.531106],[1407628800000, 11.531106],[1407715200000, 11.531106],[1407801600000, 11.749979],[1407888000000, 11.995027],[1407974400000, 11.973100],[1408060800000, 11.985536],[1408147200000, 12.060482],[1408233600000, 12.060482],[1408320000000, 12.060482],[1408406400000, 11.993798],[1408492800000, 11.906335],[1408579200000, 12.121154],[1408665600000, 11.972665],[1408752000000, 12.190673],[1408838400000, 12.190673],[1408924800000, 12.190673],[1409011200000, 12.190673],[1409097600000, 12.471757],[1409184000000, 12.668491],[1409270400000, 12.320187],[1409356800000, 12.547021]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });