$(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: [[1364774400000,14.5861],[1364860800000,14.5861],[1364947200000,14.6364],[1365033600000,14.6206],[1365120000000,14.6134],[1365206400000,14.7549],[1365292800000,14.7549],[1365379200000,14.7549],[1365465600000,14.8492],[1365552000000,14.8707],[1365638400000,14.9274],[1365724800000,14.9608],[1365811200000,14.8908],[1365897600000,14.8908],[1365984000000,14.8908],[1366070400000,14.9238],[1366156800000,14.9786],[1366243200000,14.9807],[1366329600000,14.8913],[1366416000000,14.9712],[1366502400000,14.9712],[1366588800000,14.9712],[1366675200000,14.8821],[1366761600000,14.8221],[1366848000000,14.8489],[1366934400000,14.9355],[1367020800000,14.8451],[1367107200000,14.8451],[1367193600000,14.8451],[1367280000000,14.9732]], 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: [[1364774400000, 14.586057],[1364774400000, 14.586057],[1364860800000, 14.586057],[1364947200000, 14.636355],[1365033600000, 14.620591],[1365120000000, 14.613361],[1365206400000, 14.754905],[1365292800000, 14.754905],[1365379200000, 14.754905],[1365465600000, 14.849192],[1365552000000, 14.870698],[1365638400000, 14.927415],[1365724800000, 14.960789],[1365811200000, 14.890756],[1365897600000, 14.890756],[1365984000000, 14.890756],[1366070400000, 14.923841],[1366156800000, 14.978604],[1366243200000, 14.980742],[1366329600000, 14.891272],[1366416000000, 14.971179],[1366502400000, 14.971179],[1366588800000, 14.971179],[1366675200000, 14.882140],[1366761600000, 14.822137],[1366848000000, 14.848873],[1366934400000, 14.935491],[1367020800000, 14.845122],[1367107200000, 14.845122],[1367193600000, 14.845122],[1367280000000, 14.973173]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });