$(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: [[1406851200000,9.72672],[1406937600000,9.59515],[1407024000000,9.59515],[1407110400000,9.59515],[1407196800000,9.75971],[1407283200000,9.86483],[1407369600000,9.91146],[1407456000000,9.96699],[1407542400000,10.0733],[1407628800000,10.0733],[1407715200000,10.0733],[1407801600000,10.251],[1407888000000,10.5124],[1407974400000,10.4819],[1408060800000,10.4727],[1408147200000,10.5439],[1408233600000,10.5439],[1408320000000,10.5439],[1408406400000,10.5083],[1408492800000,10.4054],[1408579200000,10.6195],[1408665600000,10.4972],[1408752000000,10.6901],[1408838400000,10.6901],[1408924800000,10.6901],[1409011200000,10.6901],[1409097600000,10.9328],[1409184000000,11.1236],[1409270400000,10.775],[1409356800000,10.8935]], 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, 9.726719],[1406851200000, 9.726719],[1406937600000, 9.595152],[1407024000000, 9.595152],[1407110400000, 9.595152],[1407196800000, 9.759708],[1407283200000, 9.864826],[1407369600000, 9.911456],[1407456000000, 9.966986],[1407542400000, 10.073348],[1407628800000, 10.073348],[1407715200000, 10.073348],[1407801600000, 10.250982],[1407888000000, 10.512407],[1407974400000, 10.481931],[1408060800000, 10.472722],[1408147200000, 10.543873],[1408233600000, 10.543873],[1408320000000, 10.543873],[1408406400000, 10.508255],[1408492800000, 10.405446],[1408579200000, 10.619495],[1408665600000, 10.497186],[1408752000000, 10.690090],[1408838400000, 10.690090],[1408924800000, 10.690090],[1409011200000, 10.690090],[1409097600000, 10.932827],[1409184000000, 11.123572],[1409270400000, 10.775009],[1409356800000, 10.893549]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });