$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1272672000000,2.69472],[1272758400000,2.69472],[1272844800000,2.69472],[1272931200000,2.69472],[1273017600000,2.69472],[1273104000000,2.54053],[1273190400000,2.46495],[1273276800000,2.4353],[1273363200000,2.4353],[1273449600000,2.4353],[1273536000000,2.4353],[1273622400000,2.48508],[1273708800000,2.53225],[1273795200000,2.52323],[1273881600000,2.48408],[1273968000000,null],[1274054400000,2.48408],[1274140800000,2.43505],[1274227200000,2.46319],[1274313600000,2.38179],[1274400000000,2.33418],[1274486400000,2.3849],[1274572800000,2.3849],[1274659200000,2.3849],[1274745600000,2.3849],[1274832000000,2.32634],[1274918400000,2.37415],[1275004800000,2.37765],[1275091200000,2.41646],[1275177600000,2.41646],[1275264000000,2.41646]], 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: [[1272672000000, 2.694721],[1272672000000, 2.694721],[1272758400000, 2.694721],[1272844800000, 2.694721],[1272931200000, 2.694721],[1273017600000, 2.694721],[1273104000000, 2.540534],[1273190400000, 2.464945],[1273276800000, 2.435299],[1273363200000, 2.435299],[1273449600000, 2.435299],[1273536000000, 2.435299],[1273622400000, 2.485076],[1273708800000, 2.532248],[1273795200000, 2.523226],[1273881600000, 2.484077],[1274054400000, 2.484077],[1274140800000, 2.435053],[1274227200000, 2.463193],[1274313600000, 2.381786],[1274400000000, 2.334183],[1274486400000, 2.384902],[1274572800000, 2.384902],[1274659200000, 2.384902],[1274745600000, 2.384902],[1274832000000, 2.326338],[1274918400000, 2.374148],[1275004800000, 2.377646],[1275091200000, 2.416458],[1275177600000, 2.416458],[1275264000000, 2.416458]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });