$(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: 'Курс LTL, грн'}, 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: 'Курс LTL', data: [[1330560000000,3.10951],[1330646400000,3.07921],[1330732800000,3.05773],[1330819200000,3.05773],[1330905600000,3.05773],[1330992000000,3.05843],[1331078400000,3.04293],[1331164800000,3.0351],[1331251200000,3.0351],[1331337600000,3.0351],[1331424000000,3.0351],[1331510400000,3.0351],[1331596800000,3.0343],[1331683200000,3.01958],[1331769600000,3.02036],[1331856000000,3.0192],[1331942400000,3.03323],[1332028800000,3.03323],[1332115200000,3.03323],[1332201600000,3.04109],[1332288000000,3.05219],[1332374400000,3.05843],[1332460800000,3.04529],[1332547200000,3.06263],[1332633600000,3.06263],[1332720000000,3.06263],[1332806400000,3.07061],[1332892800000,3.08368],[1332979200000,3.08461],[1333065600000,3.06996],[1333152000000,3.08985]], 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, 3.109511],[1330560000000, 3.109511],[1330646400000, 3.079210],[1330732800000, 3.057733],[1330819200000, 3.057733],[1330905600000, 3.057733],[1330992000000, 3.058427],[1331078400000, 3.042926],[1331164800000, 3.035102],[1331251200000, 3.035102],[1331337600000, 3.035102],[1331424000000, 3.035102],[1331510400000, 3.035102],[1331596800000, 3.034301],[1331683200000, 3.019583],[1331769600000, 3.020361],[1331856000000, 3.019204],[1331942400000, 3.033227],[1332028800000, 3.033227],[1332115200000, 3.033227],[1332201600000, 3.041090],[1332288000000, 3.052190],[1332374400000, 3.058434],[1332460800000, 3.045288],[1332547200000, 3.062634],[1332633600000, 3.062634],[1332720000000, 3.062634],[1332806400000, 3.070613],[1332892800000, 3.083681],[1332979200000, 3.084606],[1333065600000, 3.069957],[1333152000000, 3.089851]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });