如何使用Kendo Angular创建垂直条形图?

问题描述 投票:-1回答:1

我正在尝试使用Kendo Angular Components创建一个垂直条形图,但我在文档中找不到任何示例或配置。

以下是图表文档的链接:https://www.telerik.com/kendo-angular-ui/components/charts/

那里有一个显示水平条的条形图,但我需要竖条。

问题:

我需要用Kendo Angular Components创建垂直条形图。

charts kendo-ui-angular2
1个回答
0
投票

要创建垂直条形图:

配置完全相同,唯一的区别是将系列类型设置为“column”而不是“bar”。

以下是一些可运行的示例:

https://stackblitz.com/edit/angular-wzzqer?file=app/app.component.ts

https://stackblitz.com/edit/angular-wme4dg?file=app/app.component.ts

© www.soinside.com 2019 - 2024. All rights reserved.