$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1272672000000,7.35886],[1272758400000,7.35886],[1272844800000,7.35886],[1272931200000,7.35886],[1273017600000,7.35886],[1273104000000,7.15074],[1273190400000,7.13791],[1273276800000,7.1425],[1273363200000,7.1425],[1273449600000,7.1425],[1273536000000,7.1425],[1273622400000,7.14034],[1273708800000,7.15033],[1273795200000,7.12036],[1273881600000,7.06208],[1273968000000,null],[1274054400000,7.06208],[1274140800000,6.98423],[1274227200000,7.02189],[1274313600000,6.92504],[1274400000000,6.89439],[1274486400000,6.8743],[1274572800000,6.8743],[1274659200000,6.8743],[1274745600000,6.8743],[1274832000000,6.801],[1274918400000,6.86708],[1275004800000,6.85697],[1275091200000,6.88347],[1275177600000,6.88347],[1275264000000,6.88347]], 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, 7.358856],[1272672000000, 7.358856],[1272758400000, 7.358856],[1272844800000, 7.358856],[1272931200000, 7.358856],[1273017600000, 7.358856],[1273104000000, 7.150739],[1273190400000, 7.137909],[1273276800000, 7.142500],[1273363200000, 7.142500],[1273449600000, 7.142500],[1273536000000, 7.142500],[1273622400000, 7.140339],[1273708800000, 7.150332],[1273795200000, 7.120356],[1273881600000, 7.062079],[1274054400000, 7.062079],[1274140800000, 6.984226],[1274227200000, 7.021891],[1274313600000, 6.925040],[1274400000000, 6.894392],[1274486400000, 6.874304],[1274572800000, 6.874304],[1274659200000, 6.874304],[1274745600000, 6.874304],[1274832000000, 6.800996],[1274918400000, 6.867081],[1275004800000, 6.856968],[1275091200000, 6.883465],[1275177600000, 6.883465],[1275264000000, 6.883465]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });