$(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: 'Курс ISK, грн'}, 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: 'Курс ISK', data: [[1277942400000,0.03345],[1278028800000,0.03362],[1278115200000,0.034228],[1278201600000,0.034228],[1278288000000,0.034228],[1278374400000,0.034178],[1278460800000,0.034303],[1278547200000,0.034265],[1278633600000,0.034513],[1278720000000,0.034441],[1278806400000,0.034441],[1278892800000,0.034441],[1278979200000,0.034262],[1279065600000,0.034249],[1279152000000,0.034612],[1279238400000,0.034949],[1279324800000,0.035413],[1279411200000,0.035413],[1279497600000,0.035413],[1279584000000,0.035294],[1279670400000,0.03498],[1279756800000,0.034903],[1279843200000,0.034992],[1279929600000,0.035115],[1280016000000,0.035115],[1280102400000,0.035115],[1280188800000,0.035204],[1280275200000,0.035478],[1280361600000,0.035362],[1280448000000,0.035571],[1280534400000,0.035457]], 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: [[1277942400000, 0.033450],[1277942400000, 0.033450],[1278028800000, 0.033620],[1278115200000, 0.034228],[1278201600000, 0.034228],[1278288000000, 0.034228],[1278374400000, 0.034178],[1278460800000, 0.034303],[1278547200000, 0.034265],[1278633600000, 0.034513],[1278720000000, 0.034441],[1278806400000, 0.034441],[1278892800000, 0.034441],[1278979200000, 0.034262],[1279065600000, 0.034249],[1279152000000, 0.034612],[1279238400000, 0.034949],[1279324800000, 0.035413],[1279411200000, 0.035413],[1279497600000, 0.035413],[1279584000000, 0.035294],[1279670400000, 0.034980],[1279756800000, 0.034903],[1279843200000, 0.034992],[1279929600000, 0.035115],[1280016000000, 0.035115],[1280102400000, 0.035115],[1280188800000, 0.035204],[1280275200000, 0.035478],[1280361600000, 0.035362],[1280448000000, 0.035571],[1280534400000, 0.035457]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });