or
_resize: function(e) { var t = e.width; this.popup.close(), this._shrink(t), this._stretch(t), this._markVisibles(), this._toggleOverflowAnchor()},<div style="padding: 20px" id="{{generateChartId(stn)}}" kendo-chart k-legend="{ position: 'top' }" k-series-defaults="{ type: 'line' }" k-series="setupSeries(stn)" k-category-axis="getCategoryAxisData(stn)" </div>$scope.setupSeries = function () { return [ { field: 'X', name: 'X', categoryField: 'epoch'}, { field: 'Y', name: 'Y', categoryField: 'epoch' }, { field: 'Z', name: 'Z', categoryField: 'epoch' } ]; };$scope.getCategoryAxisData = function (stn) { return { majorGridLines: { visible: false }, minorGridLines: { visible: false }, majorTicks: { visible: false, }, minorTicks: { visible: false }, maxDateGroups: 10, baseUnitStep: "auto", /*autoBaseUnitSteps: { minutes: [monitorInterval], hours: [], days: [], weeks: [], months: [], years: [] },*/ labels: { dateFormats: { hours: "HH mm" }, //rotation: 45 } }; };this.addOnePoint = function (pos) { //lastCoordTime = new Date(time); if (chartData.length > 10) { chartData.shift(); chartData.push(formData(pos)); } else { chartData.push(formData(pos)); } if (!chart) { chart = $("#chart" + stationId).data("kendoChart"); } var dataSource = new kendo.data.DataSource({ data: chartData }); chart.setDataSource(dataSource); //chart.refresh(); };