$(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: [[1231200000000,6.94432],[1231286400000,6.83556],[1231372800000,6.83556],[1231459200000,7.01766],[1231545600000,7.02539],[1231632000000,7.02539],[1231718400000,7.02539],[1231804800000,6.8733],[1231891200000,6.87289],[1231977600000,6.87163],[1232064000000,6.84241],[1232150400000,6.87472],[1232236800000,null],[1232323200000,6.87472],[1232409600000,6.85265],[1232496000000,6.72391],[1232582400000,6.73307],[1232668800000,6.64916],[1232755200000,6.58786],[1232841600000,6.58786],[1232928000000,6.58786],[1233014400000,6.65445],[1233100800000,6.755],[1233187200000,6.73363],[1233273600000,6.70216],[1233360000000,6.63595]], 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: [[1231200000000, 6.944316],[1231200000000, 6.944316],[1231286400000, 6.835557],[1231372800000, 6.835557],[1231459200000, 7.017663],[1231545600000, 7.025390],[1231632000000, 7.025390],[1231718400000, 7.025390],[1231804800000, 6.873296],[1231891200000, 6.872890],[1231977600000, 6.871628],[1232064000000, 6.842411],[1232150400000, 6.874722],[1232323200000, 6.874722],[1232409600000, 6.852647],[1232496000000, 6.723914],[1232582400000, 6.733067],[1232668800000, 6.649162],[1232755200000, 6.587864],[1232841600000, 6.587864],[1232928000000, 6.587864],[1233014400000, 6.654447],[1233100800000, 6.754998],[1233187200000, 6.733628],[1233273600000, 6.702164],[1233360000000, 6.635949]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });