$(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: [[1341100800000,14.3188],[1341187200000,14.3188],[1341273600000,14.4466],[1341360000000,14.4239],[1341446400000,14.415],[1341532800000,14.2714],[1341619200000,14.207],[1341705600000,14.2079],[1341792000000,14.2079],[1341878400000,14.1135],[1341964800000,14.1043],[1342051200000,14.0756],[1342137600000,13.9814],[1342224000000,13.9915],[1342310400000,13.9915],[1342396800000,13.9915],[1342483200000,13.9823],[1342569600000,14.0997],[1342656000000,14.0518],[1342742400000,14.1127],[1342828800000,14.0067],[1342915200000,14.0067],[1343001600000,14.0067],[1343088000000,13.8976],[1343174400000,13.8793],[1343260800000,13.9289],[1343347200000,14.0736],[1343433600000,14.1329],[1343520000000,14.1329],[1343606400000,14.1329],[1343692800000,14.0534]], 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: [[1341100800000, 14.318796],[1341100800000, 14.318796],[1341187200000, 14.318796],[1341273600000, 14.446613],[1341360000000, 14.423893],[1341446400000, 14.414963],[1341532800000, 14.271419],[1341619200000, 14.206976],[1341705600000, 14.207865],[1341792000000, 14.207865],[1341878400000, 14.113466],[1341964800000, 14.104281],[1342051200000, 14.075579],[1342137600000, 13.981436],[1342224000000, 13.991482],[1342310400000, 13.991482],[1342396800000, 13.991482],[1342483200000, 13.982296],[1342569600000, 14.099689],[1342656000000, 14.051784],[1342742400000, 14.112659],[1342828800000, 14.006693],[1342915200000, 14.006693],[1343001600000, 14.006693],[1343088000000, 13.897625],[1343174400000, 13.879256],[1343260800000, 13.928919],[1343347200000, 14.073557],[1343433600000, 14.132900],[1343520000000, 14.132900],[1343606400000, 14.132900],[1343692800000, 14.053450]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });