kendo-dataviz

How to get the month names in kendo chart by using function

孤街醉人 提交于 2019-12-02 18:10:02
问题 How to create a function to get the month as Jan,feb.. displayed in kendo chart x axis. var internetUsers = [ { "Month": "1", "year": "2010", "value": 1 }, { "Month": "2", "year": "2010", "value": 2 }, { "Month": "3", "year": "2010", "value": 3 }, { "Month": "4", "year": "2010", "value": 4 }, { "Month": "5", "year": "2010", "value": 5 }, { "Month": "6", "year": "2010", "value": 6 }, { "Month": "7", "year": "2010", "value": 7 }, { "Month": "8", "year": "2010", "value": 8 }]; function

How to get the month names in kendo chart by using function

我是研究僧i 提交于 2019-12-02 11:20:22
How to create a function to get the month as Jan,feb.. displayed in kendo chart x axis. var internetUsers = [ { "Month": "1", "year": "2010", "value": 1 }, { "Month": "2", "year": "2010", "value": 2 }, { "Month": "3", "year": "2010", "value": 3 }, { "Month": "4", "year": "2010", "value": 4 }, { "Month": "5", "year": "2010", "value": 5 }, { "Month": "6", "year": "2010", "value": 6 }, { "Month": "7", "year": "2010", "value": 7 }, { "Month": "8", "year": "2010", "value": 8 }]; function createChart() { $("#chart").kendoChart({ theme: $(document).data("kendoSkin") || "default", dataSource: { data:

Kendo + Angular chart data

岁酱吖の 提交于 2019-11-30 07:33:21
I'm trying out Kendo charts with angular, and I have problem displaying data, here is my code: HTML: <div kendo-chart="rchart" data-k-options="chartOptions" data-role="chart" class="k-chart" style="position: relative;"></div> Javascript: resultService.getResult().then(function (resultResponse) { $scope.data = resultResponse.data; $scope.oldReps = _.pluck($scope.data.TreningScores.Item1, 'Item2'); $scope.newReps = _.pluck($scope.data.TreningScores.Item2, 'Item2'); $scope.categories = _.pluck($scope.data.TreningScores.Item1, 'Item1'); }); $scope.chartOptions = { legend: { position: "bottom" },