$(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: [[1109635200000,4.56398],[1109721600000,4.56007],[1109808000000,4.50379],[1109894400000,4.50455],[1109980800000,4.4854],[1110067200000,4.4854],[1110153600000,4.4854],[1110240000000,4.4854],[1110326400000,4.4854],[1110412800000,4.55104],[1110499200000,4.58724],[1110585600000,4.58394],[1110672000000,4.58394],[1110758400000,4.58394],[1110844800000,4.56325],[1110931200000,4.57006],[1111017600000,4.57849],[1111104000000,4.57693],[1111190400000,4.53474],[1111276800000,4.53474],[1111363200000,4.53474],[1111449600000,null],[1111536000000,4.49052],[1111622400000,4.4298],[1111708800000,4.41236],[1111795200000,4.41236],[1111881600000,4.41236],[1111968000000,4.41236],[1112054400000,4.41236],[1112140800000,4.39769],[1112227200000,4.40594]], 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: [[1109635200000, 4.563984],[1109635200000, 4.563984],[1109721600000, 4.560066],[1109808000000, 4.503793],[1109894400000, 4.504547],[1109980800000, 4.485396],[1110067200000, 4.485396],[1110153600000, 4.485396],[1110240000000, 4.485396],[1110326400000, 4.485396],[1110412800000, 4.551042],[1110499200000, 4.587239],[1110585600000, 4.583944],[1110672000000, 4.583944],[1110758400000, 4.583944],[1110844800000, 4.563251],[1110931200000, 4.570058],[1111017600000, 4.578492],[1111104000000, 4.576935],[1111190400000, 4.534742],[1111276800000, 4.534742],[1111363200000, 4.534742],[1111536000000, 4.490517],[1111622400000, 4.429803],[1111708800000, 4.412359],[1111795200000, 4.412359],[1111881600000, 4.412359],[1111968000000, 4.412359],[1112054400000, 4.412359],[1112140800000, 4.397688],[1112227200000, 4.405943]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });