我遇到了一个场景,如果数据集的值比其他值小得多,那么竖线就不会显示,但这不是条形图。对于条形图,横条显示在图表上。虽然传奇出现在所有的记录,在这两个图表。
不确定这是预期的功能还是bug。
我创建的示例代码用于复制QA团队提出的bug。任何帮助都将不胜感激。
import { Component } from '@angular/core';
@Component({
selector: 'my-app',
template: `
<kendo-chart>
<kendo-chart-title text="Units sold"></kendo-chart-title>
<kendo-chart-category-axis>
<kendo-chart-category-axis-item [categories]="['Q1', 'Q2', 'Q3', 'Q4']">
</kendo-chart-category-axis-item>
</kendo-chart-category-axis>
<kendo-chart-series>
<kendo-chart-series-item type="column" [data]="[120000, 67000, 231, 196000000]">
</kendo-chart-series-item>
</kendo-chart-series>
</kendo-chart>
<h4> H-Bar Chart</h4>
<kendo-chart>
<kendo-chart-title text="Units sold"></kendo-chart-title>
<kendo-chart-category-axis>
<kendo-chart-category-axis-item [categories]="['Q1', 'Q2', 'Q3', 'Q4']">
</kendo-chart-category-axis-item>
</kendo-chart-category-axis>
<kendo-chart-series>
<kendo-chart-series-item type="bar" [data]="[120000, 67000, 231, 196000000]">
</kendo-chart-series-item>
</kendo-chart-series>
</kendo-chart>
`
})
export class AppComponent {
}相同/相同的/Stackblitz
https://stackblitz.com/edit/angular-w5c6ir?file=src%2Fapp%2Fapp.component.html
发布于 2018-12-05 07:39:15
为可能遇到这种情况的人回答我自己的问题。我已经向Kendo团队提出了这个问题,并认识到这是一个错误。到目前为止,解决方法是禁用窗格的裁剪。
panes="{剪辑:假}“
更新:在版本@progress/kendo-角图3.5.2中得到修正。
https://stackblitz.com/edit/angular-y6nkw1?file=app/app.component.ts
现在不需要将剪辑设置为false。
stackblitz:https://stackblitz.com/edit/angular-dvynmu?file=src/app/app.component.html
https://stackoverflow.com/questions/53611757
复制相似问题