0
我有一个角度应用程序,我正在使用Google图表(https://github.com/angular-google-chart/angular-google-chart)在图表的帮助下显示一些数据。在angularjs中指定谷歌图表轴的最大值
目前我的图表看起来像以下:
横轴是我从我的后台获取我的应用程序的用户数量。到目前为止,这在某种程度上被限制为4,我无法找到它指定的地方的任何地方。有什么办法可以将水平轴的限制设置为总用户数?
我的代码看起来像以下:
//Populate chart values
$scope.myChartObject.data = {"cols": [
{id: "t", label: "Parameter", type: "string"},
{id: "s", label: "Number of users", type: "number"}
], "rows": [
{c: [
{v: "Today's total logins"},
{v: $scope.today_login_count},
]},
{c: [
{v: "Last week's total logins"},
{v: $scope.week_login_count}
]},
{c: [
{v: "Last month's total logins"},
{v: $scope.month_login_count},
]},
{c: [
{v: "Users who completed our trainign plan"},
{v: 0},
]}
]};
$scope.myChartObject.options = {
'title': 'App usage analytics at a glance'
};