$(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: [[1275350400000,7.56431],[1275436800000,7.54579],[1275523200000,7.53697],[1275609600000,7.63527],[1275696000000,7.58483],[1275782400000,7.58483],[1275868800000,7.58483],[1275955200000,7.47532],[1276041600000,7.52015],[1276128000000,7.5901],[1276214400000,7.63728],[1276300800000,7.67898],[1276387200000,7.67898],[1276473600000,7.67898],[1276560000000,7.70481],[1276646400000,7.68171],[1276732800000,7.69113],[1276819200000,7.7219],[1276905600000,7.69363],[1276992000000,7.69363],[1277078400000,7.69363],[1277164800000,7.77886],[1277251200000,7.73683],[1277337600000,7.65466],[1277424000000,7.57104],[1277510400000,7.5954],[1277596800000,7.5954],[1277683200000,7.5954],[1277769600000,7.5954],[1277856000000,7.52807]], 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: [[1275350400000, 7.564309],[1275350400000, 7.564309],[1275436800000, 7.545793],[1275523200000, 7.536969],[1275609600000, 7.635274],[1275696000000, 7.584826],[1275782400000, 7.584826],[1275868800000, 7.584826],[1275955200000, 7.475319],[1276041600000, 7.520155],[1276128000000, 7.590101],[1276214400000, 7.637279],[1276300800000, 7.678978],[1276387200000, 7.678978],[1276473600000, 7.678978],[1276560000000, 7.704809],[1276646400000, 7.681706],[1276732800000, 7.691131],[1276819200000, 7.721898],[1276905600000, 7.693628],[1276992000000, 7.693628],[1277078400000, 7.693628],[1277164800000, 7.778865],[1277251200000, 7.736829],[1277337600000, 7.654665],[1277424000000, 7.571043],[1277510400000, 7.595404],[1277596800000, 7.595404],[1277683200000, 7.595404],[1277769600000, 7.595404],[1277856000000, 7.528066]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });