$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1151712000000,4.54293],[1151798400000,4.54293],[1151884800000,4.54293],[1151971200000,4.54472],[1152057600000,4.54731],[1152144000000,4.56541],[1152230400000,4.53475],[1152316800000,4.53535],[1152403200000,4.53535],[1152489600000,4.53535],[1152576000000,4.49233],[1152662400000,4.47982],[1152748800000,4.44548],[1152835200000,4.45782],[1152921600000,4.4764],[1153008000000,4.4764],[1153094400000,4.4764],[1153180800000,4.46441],[1153267200000,4.45237],[1153353600000,4.43465],[1153440000000,4.45425],[1153526400000,4.46323],[1153612800000,4.46323],[1153699200000,4.46323],[1153785600000,4.42879],[1153872000000,4.42953],[1153958400000,4.43792],[1154044800000,4.4606],[1154131200000,4.44521],[1154217600000,4.44521],[1154304000000,4.44521]], 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: [[1151712000000, 4.542927],[1151712000000, 4.542927],[1151798400000, 4.542927],[1151884800000, 4.542927],[1151971200000, 4.544716],[1152057600000, 4.547311],[1152144000000, 4.565411],[1152230400000, 4.534745],[1152316800000, 4.535346],[1152403200000, 4.535346],[1152489600000, 4.535346],[1152576000000, 4.492333],[1152662400000, 4.479822],[1152748800000, 4.445482],[1152835200000, 4.457824],[1152921600000, 4.476401],[1153008000000, 4.476401],[1153094400000, 4.476401],[1153180800000, 4.464405],[1153267200000, 4.452371],[1153353600000, 4.434649],[1153440000000, 4.454245],[1153526400000, 4.463233],[1153612800000, 4.463233],[1153699200000, 4.463233],[1153785600000, 4.428785],[1153872000000, 4.429529],[1153958400000, 4.437922],[1154044800000, 4.460600],[1154131200000, 4.445207],[1154217600000, 4.445207],[1154304000000, 4.445207]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });