$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1107216000000,9.82167],[1107302400000,9.83933],[1107388800000,9.85465],[1107475200000,9.81722],[1107561600000,9.78044],[1107648000000,9.78044],[1107734400000,9.78044],[1107820800000,9.69013],[1107907200000,9.61906],[1107993600000,9.636],[1108080000000,9.65337],[1108166400000,9.70586],[1108252800000,9.70586],[1108339200000,9.70586],[1108425600000,9.75948],[1108512000000,9.77749],[1108598400000,9.81315],[1108684800000,9.83135],[1108771200000,9.84963],[1108857600000,9.84963],[1108944000000,9.84963],[1109030400000,9.84963],[1109116800000,9.92341],[1109203200000,9.97947],[1109289600000,9.97928],[1109376000000,9.96053],[1109462400000,9.96053],[1109548800000,9.96053]], 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: [[1107216000000, 9.821667],[1107216000000, 9.821667],[1107302400000, 9.839332],[1107388800000, 9.854647],[1107475200000, 9.817222],[1107561600000, 9.780443],[1107648000000, 9.780443],[1107734400000, 9.780443],[1107820800000, 9.690128],[1107907200000, 9.619056],[1107993600000, 9.636000],[1108080000000, 9.653370],[1108166400000, 9.705861],[1108252800000, 9.705861],[1108339200000, 9.705861],[1108425600000, 9.759484],[1108512000000, 9.777491],[1108598400000, 9.813148],[1108684800000, 9.831354],[1108771200000, 9.849628],[1108857600000, 9.849628],[1108944000000, 9.849628],[1109030400000, 9.849628],[1109116800000, 9.923408],[1109203200000, 9.979473],[1109289600000, 9.979284],[1109376000000, 9.960526],[1109462400000, 9.960526],[1109548800000, 9.960526]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });