$(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: 'Курс CNY, грн'}, 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: 'Курс CNY', data: [[1364774400000,1.28581],[1364860800000,1.28581],[1364947200000,1.29291],[1365033600000,1.28749],[1365120000000,1.28899],[1365206400000,1.28889],[1365292800000,1.28889],[1365379200000,1.28889],[1365465600000,1.2885],[1365552000000,1.2887],[1365638400000,1.29047],[1365724800000,1.28998],[1365811200000,1.29084],[1365897600000,1.29084],[1365984000000,1.29084],[1366070400000,1.29192],[1366156800000,1.29272],[1366243200000,1.2949],[1366329600000,1.29314],[1366416000000,1.29384],[1366502400000,1.29384],[1366588800000,1.29384],[1366675200000,1.29299],[1366761600000,1.29355],[1366848000000,1.29377],[1366934400000,1.29632],[1367020800000,1.29651],[1367107200000,1.29651],[1367193600000,1.29651],[1367280000000,1.29651]], 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, 1.285809],[1364774400000, 1.285809],[1364860800000, 1.285809],[1364947200000, 1.292913],[1365033600000, 1.287487],[1365120000000, 1.288992],[1365206400000, 1.288885],[1365292800000, 1.288885],[1365379200000, 1.288885],[1365465600000, 1.288501],[1365552000000, 1.288699],[1365638400000, 1.290469],[1365724800000, 1.289983],[1365811200000, 1.290843],[1365897600000, 1.290843],[1365984000000, 1.290843],[1366070400000, 1.291921],[1366156800000, 1.292716],[1366243200000, 1.294901],[1366329600000, 1.293143],[1366416000000, 1.293840],[1366502400000, 1.293840],[1366588800000, 1.293840],[1366675200000, 1.292991],[1366761600000, 1.293546],[1366848000000, 1.293769],[1366934400000, 1.296323],[1367020800000, 1.296510],[1367107200000, 1.296510],[1367193600000, 1.296510],[1367280000000, 1.296507]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });