$(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: 'Курс KZT, грн'}, 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: 'Курс KZT', data: [[1298937600000,0.05434],[1299024000000,0.054402],[1299110400000,0.054426],[1299196800000,0.054441],[1299283200000,0.054469],[1299369600000,0.054469],[1299456000000,0.054469],[1299542400000,0.054469],[1299628800000,0.054469],[1299715200000,0.054462],[1299801600000,0.054518],[1299888000000,0.054477],[1299974400000,0.054477],[1300060800000,0.054477],[1300147200000,0.054406],[1300233600000,0.054388],[1300320000000,0.054537],[1300406400000,0.054489],[1300492800000,0.054503],[1300579200000,0.054503],[1300665600000,0.054503],[1300752000000,0.054503],[1300838400000,0.054503],[1300924800000,0.054524],[1301011200000,0.054479],[1301097600000,0.054663],[1301184000000,0.054663],[1301270400000,0.054663],[1301356800000,0.054682],[1301443200000,0.054674],[1301529600000,0.054633]], 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: [[1298937600000, 0.054340],[1298937600000, 0.054340],[1299024000000, 0.054402],[1299110400000, 0.054426],[1299196800000, 0.054441],[1299283200000, 0.054469],[1299369600000, 0.054469],[1299456000000, 0.054469],[1299542400000, 0.054469],[1299628800000, 0.054469],[1299715200000, 0.054462],[1299801600000, 0.054518],[1299888000000, 0.054477],[1299974400000, 0.054477],[1300060800000, 0.054477],[1300147200000, 0.054406],[1300233600000, 0.054388],[1300320000000, 0.054537],[1300406400000, 0.054489],[1300492800000, 0.054503],[1300579200000, 0.054503],[1300665600000, 0.054503],[1300752000000, 0.054503],[1300838400000, 0.054503],[1300924800000, 0.054524],[1301011200000, 0.054479],[1301097600000, 0.054663],[1301184000000, 0.054663],[1301270400000, 0.054663],[1301356800000, 0.054682],[1301443200000, 0.054674],[1301529600000, 0.054633]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });