$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1139184000000,7.25237],[1139270400000,7.25237],[1139356800000,7.25714],[1139443200000,7.24973],[1139529600000,7.25339],[1139616000000,7.25901],[1139702400000,7.25901],[1139788800000,7.25901],[1139875200000,7.23282],[1139961600000,7.23282],[1140048000000,7.24006],[1140134400000,7.2271],[1140220800000,7.22399],[1140307200000,7.22399],[1140393600000,7.22399],[1140480000000,7.22399],[1140566400000,7.23394],[1140652800000,7.22662],[1140739200000,7.25979],[1140825600000,7.24971],[1140912000000,7.24971],[1140998400000,7.24971],[1141084800000,7.23932]], 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: [[1139184000000, 7.252371],[1139184000000, 7.252371],[1139270400000, 7.252371],[1139356800000, 7.257144],[1139443200000, 7.249727],[1139529600000, 7.253392],[1139616000000, 7.259012],[1139702400000, 7.259012],[1139788800000, 7.259012],[1139875200000, 7.232822],[1139961600000, 7.232822],[1140048000000, 7.240060],[1140134400000, 7.227098],[1140220800000, 7.223986],[1140307200000, 7.223986],[1140393600000, 7.223986],[1140480000000, 7.223986],[1140566400000, 7.233941],[1140652800000, 7.226623],[1140739200000, 7.259794],[1140825600000, 7.249706],[1140912000000, 7.249706],[1140998400000, 7.249706],[1141084800000, 7.239323]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });