$(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: [[1285891200000,0.25924],[1285977600000,0.25926],[1286064000000,0.25926],[1286150400000,0.25926],[1286236800000,0.25938],[1286323200000,0.25989],[1286409600000,0.26461],[1286496000000,0.26693],[1286582400000,0.26447],[1286668800000,0.26447],[1286755200000,0.26447],[1286841600000,0.26515],[1286928000000,0.26299],[1287014400000,0.26255],[1287100800000,0.26423],[1287187200000,0.26255],[1287273600000,0.26255],[1287360000000,0.26255],[1287446400000,0.2592],[1287532800000,0.26012],[1287619200000,0.2569],[1287705600000,0.25742],[1287792000000,0.25942],[1287878400000,0.25942],[1287964800000,0.25942],[1288051200000,0.26175],[1288137600000,0.26025],[1288224000000,0.25882],[1288310400000,0.25789],[1288396800000,0.257],[1288483200000,0.257]], 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: [[1285891200000, 0.259240],[1285891200000, 0.259240],[1285977600000, 0.259260],[1286064000000, 0.259260],[1286150400000, 0.259260],[1286236800000, 0.259380],[1286323200000, 0.259890],[1286409600000, 0.264610],[1286496000000, 0.266930],[1286582400000, 0.264470],[1286668800000, 0.264470],[1286755200000, 0.264470],[1286841600000, 0.265150],[1286928000000, 0.262990],[1287014400000, 0.262550],[1287100800000, 0.264230],[1287187200000, 0.262550],[1287273600000, 0.262550],[1287360000000, 0.262550],[1287446400000, 0.259200],[1287532800000, 0.260120],[1287619200000, 0.256900],[1287705600000, 0.257420],[1287792000000, 0.259420],[1287878400000, 0.259420],[1287964800000, 0.259420],[1288051200000, 0.261750],[1288137600000, 0.260250],[1288224000000, 0.258820],[1288310400000, 0.257890],[1288396800000, 0.257000],[1288483200000, 0.257000]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });