$(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: 'Курс CZK, грн'}, 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: 'Курс CZK', data: [[1433116800000,0.844134],[1433203200000,0.844134],[1433289600000,0.846933],[1433376000000,0.851713],[1433462400000,0.865811],[1433548800000,0.860956],[1433635200000,0.860956],[1433721600000,0.860956],[1433808000000,0.858684],[1433894400000,0.870498],[1433980800000,0.873374],[1434067200000,0.864561],[1434153600000,0.865495],[1434240000000,0.865495],[1434326400000,0.865495],[1434412800000,0.882044],[1434499200000,0.911378],[1434585600000,0.89645],[1434672000000,0.891797],[1434758400000,0.898382],[1434844800000,0.898382],[1434931200000,0.898382],[1435017600000,0.907763],[1435104000000,0.887028],[1435190400000,0.872856],[1435276800000,0.872125],[1435363200000,0.864539],[1435449600000,0.864539],[1435536000000,0.864539],[1435622400000,0.864539]], 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: [[1433116800000, 0.844134],[1433116800000, 0.844134],[1433203200000, 0.844134],[1433289600000, 0.846933],[1433376000000, 0.851713],[1433462400000, 0.865811],[1433548800000, 0.860956],[1433635200000, 0.860956],[1433721600000, 0.860956],[1433808000000, 0.858684],[1433894400000, 0.870498],[1433980800000, 0.873374],[1434067200000, 0.864561],[1434153600000, 0.865495],[1434240000000, 0.865495],[1434326400000, 0.865495],[1434412800000, 0.882044],[1434499200000, 0.911378],[1434585600000, 0.896450],[1434672000000, 0.891797],[1434758400000, 0.898382],[1434844800000, 0.898382],[1434931200000, 0.898382],[1435017600000, 0.907763],[1435104000000, 0.887028],[1435190400000, 0.872856],[1435276800000, 0.872125],[1435363200000, 0.864539],[1435449600000, 0.864539],[1435536000000, 0.864539],[1435622400000, 0.864539]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });