$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1257033600000,7.82228],[1257120000000,7.82228],[1257206400000,7.82692],[1257292800000,7.76629],[1257379200000,7.82813],[1257465600000,7.88284],[1257552000000,7.85921],[1257638400000,7.85921],[1257724800000,7.85921],[1257811200000,7.92734],[1257897600000,7.91124],[1257984000000,7.95635],[1258070400000,7.8989],[1258156800000,7.87419],[1258243200000,7.87419],[1258329600000,7.87419],[1258416000000,7.92551],[1258502400000,7.86551],[1258588800000,7.90894],[1258675200000,7.84848],[1258761600000,7.82572],[1258848000000,7.82572],[1258934400000,7.82572],[1259020800000,7.91596],[1259107200000,7.91544],[1259193600000,7.97865],[1259280000000,7.96673],[1259366400000,7.90355],[1259452800000,7.90355],[1259539200000,7.90355]], 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: [[1257033600000, 7.822284],[1257033600000, 7.822284],[1257120000000, 7.822284],[1257206400000, 7.826919],[1257292800000, 7.766287],[1257379200000, 7.828126],[1257465600000, 7.882835],[1257552000000, 7.859210],[1257638400000, 7.859210],[1257724800000, 7.859210],[1257811200000, 7.927343],[1257897600000, 7.911237],[1257984000000, 7.956349],[1258070400000, 7.898900],[1258156800000, 7.874190],[1258243200000, 7.874190],[1258329600000, 7.874190],[1258416000000, 7.925511],[1258502400000, 7.865509],[1258588800000, 7.908939],[1258675200000, 7.848481],[1258761600000, 7.825721],[1258848000000, 7.825721],[1258934400000, 7.825721],[1259020800000, 7.915960],[1259107200000, 7.915441],[1259193600000, 7.978652],[1259280000000, 7.966727],[1259366400000, 7.903549],[1259452800000, 7.903549],[1259539200000, 7.903549]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });