$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[973036800000,4.57624],[973123200000,4.65072],[973209600000,4.70092],[973296000000,4.74659],[973382400000,4.74659],[973468800000,4.74659],[973555200000,4.71216],[973641600000,4.66901],[973728000000,4.65379],[973814400000,4.63856],[973900800000,4.71568],[973987200000,4.71568],[974073600000,4.71568],[974160000000,4.68687],[974246400000,4.66701],[974332800000,4.67399],[974419200000,4.65922],[974505600000,4.64065],[974592000000,4.64065],[974678400000,4.64065],[974764800000,4.61501],[974851200000,4.60731],[974937600000,4.58276],[975024000000,4.58168],[975110400000,4.58665],[975196800000,4.58665],[975283200000,4.58665],[975369600000,4.57026],[975456000000,4.65436],[975542400000,4.70275]], 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: [[973036800000, 4.576240],[973036800000, 4.576240],[973123200000, 4.650720],[973209600000, 4.700920],[973296000000, 4.746590],[973382400000, 4.746590],[973468800000, 4.746590],[973555200000, 4.712160],[973641600000, 4.669010],[973728000000, 4.653790],[973814400000, 4.638560],[973900800000, 4.715680],[973987200000, 4.715680],[974073600000, 4.715680],[974160000000, 4.686870],[974246400000, 4.667010],[974332800000, 4.673990],[974419200000, 4.659220],[974505600000, 4.640650],[974592000000, 4.640650],[974678400000, 4.640650],[974764800000, 4.615010],[974851200000, 4.607310],[974937600000, 4.582760],[975024000000, 4.581680],[975110400000, 4.586650],[975196800000, 4.586650],[975283200000, 4.586650],[975369600000, 4.570260],[975456000000, 4.654360],[975542400000, 4.702750]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });