$(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: [[1212969600000,4.67505],[1213056000000,4.75294],[1213142400000,4.68435],[1213228800000,4.67192],[1213315200000,4.64491],[1213401600000,4.62022],[1213488000000,4.62022],[1213574400000,4.62022],[1213660800000,4.62022],[1213747200000,4.64655],[1213833600000,4.65308],[1213920000000,4.63828],[1214006400000,4.68319],[1214092800000,4.68319],[1214179200000,4.68319],[1214265600000,4.63984],[1214352000000,4.66482],[1214438400000,4.6646],[1214524800000,4.71318],[1214611200000,4.75677],[1214697600000,4.75677],[1214784000000,4.75677]], 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: [[1212969600000, 4.675052],[1212969600000, 4.675052],[1213056000000, 4.752941],[1213142400000, 4.684353],[1213228800000, 4.671924],[1213315200000, 4.644907],[1213401600000, 4.620216],[1213488000000, 4.620216],[1213574400000, 4.620216],[1213660800000, 4.620216],[1213747200000, 4.646546],[1213833600000, 4.653077],[1213920000000, 4.638278],[1214006400000, 4.683193],[1214092800000, 4.683193],[1214179200000, 4.683193],[1214265600000, 4.639844],[1214352000000, 4.664821],[1214438400000, 4.664599],[1214524800000, 4.713176],[1214611200000, 4.756773],[1214697600000, 4.756773],[1214784000000, 4.756773]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });