$(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: 'Курс CZK, грн'}, 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: 'Курс CZK', data: [[1296518400000,0.448892],[1296604800000,0.453052],[1296691200000,0.454399],[1296777600000,0.45328],[1296864000000,0.450944],[1296950400000,0.450944],[1297036800000,0.450944],[1297123200000,0.447356],[1297209600000,0.451037],[1297296000000,0.447704],[1297382400000,0.445729],[1297468800000,0.443002],[1297555200000,0.443002],[1297641600000,0.443002],[1297728000000,0.440523],[1297814400000,0.44176],[1297900800000,0.441079],[1297987200000,0.442711],[1298073600000,0.443986],[1298160000000,0.443986],[1298246400000,0.443986],[1298332800000,0.443721],[1298419200000,0.44289],[1298505600000,0.444098],[1298592000000,0.445364],[1298678400000,0.445861],[1298764800000,0.445861],[1298851200000,0.445861]], 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: [[1296518400000, 0.448892],[1296518400000, 0.448892],[1296604800000, 0.453052],[1296691200000, 0.454399],[1296777600000, 0.453280],[1296864000000, 0.450944],[1296950400000, 0.450944],[1297036800000, 0.450944],[1297123200000, 0.447356],[1297209600000, 0.451037],[1297296000000, 0.447704],[1297382400000, 0.445729],[1297468800000, 0.443002],[1297555200000, 0.443002],[1297641600000, 0.443002],[1297728000000, 0.440523],[1297814400000, 0.441760],[1297900800000, 0.441079],[1297987200000, 0.442711],[1298073600000, 0.443986],[1298160000000, 0.443986],[1298246400000, 0.443986],[1298332800000, 0.443721],[1298419200000, 0.442890],[1298505600000, 0.444098],[1298592000000, 0.445364],[1298678400000, 0.445861],[1298764800000, 0.445861],[1298851200000, 0.445861]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });