$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1257033600000,16.6826],[1257120000000,16.6826],[1257206400000,16.6594],[1257292800000,16.5587],[1257379200000,16.6864],[1257465600000,16.8041],[1257552000000,16.7501],[1257638400000,16.7501],[1257724800000,16.7501],[1257811200000,16.8938],[1257897600000,16.8705],[1257984000000,16.9544],[1258070400000,16.8389],[1258156800000,16.7797],[1258243200000,16.7797],[1258329600000,16.7797],[1258416000000,16.8883],[1258502400000,16.7781],[1258588800000,16.8694],[1258675200000,16.771],[1258761600000,16.7121],[1258848000000,16.7121],[1258934400000,16.7121],[1259020800000,16.8656],[1259107200000,16.8668],[1259193600000,16.9894],[1259280000000,16.9674],[1259366400000,16.7925],[1259452800000,16.7925],[1259539200000,16.7925]], 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, 16.682612],[1257033600000, 16.682612],[1257120000000, 16.682612],[1257206400000, 16.659383],[1257292800000, 16.558662],[1257379200000, 16.686384],[1257465600000, 16.804113],[1257552000000, 16.750136],[1257638400000, 16.750136],[1257724800000, 16.750136],[1257811200000, 16.893842],[1257897600000, 16.870533],[1257984000000, 16.954387],[1258070400000, 16.838948],[1258156800000, 16.779750],[1258243200000, 16.779750],[1258329600000, 16.779750],[1258416000000, 16.888287],[1258502400000, 16.778051],[1258588800000, 16.869427],[1258675200000, 16.770989],[1258761600000, 16.712106],[1258848000000, 16.712106],[1258934400000, 16.712106],[1259020800000, 16.865649],[1259107200000, 16.866776],[1259193600000, 16.989386],[1259280000000, 16.967365],[1259366400000, 16.792534],[1259452800000, 16.792534],[1259539200000, 16.792534]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });