我正在使用带有 Angular 2 的 Kendo UI 图表,默认情况下图表会出现网格线,但我想隐藏它。我从 API 获得了“ GridLines ”类。但是我没有在哪里使用它。而且我想隐藏我的 X 轴。
预期结果:
代码:
<kendo-chart>
<kendo-chart-value-axis>
<kendo-chart-value-axis-item [title]="{ text: 'Score' }" [min]="0" [max]="11" >
</kendo-chart-value-axis-item>
</kendo-chart-value-axis>
<kendo-chart-series-defaults type="bar">
<kendo-chart-series-defaults-labels format="">
</kendo-chart-series-defaults-labels>
</kendo-chart-series-defaults>
<kendo-chart-category-axis>
<kendo-chart-category-axis-item [categories]="chartObject.skills">
</kendo-chart-category-axis-item>
</kendo-chart-category-axis>
<kendo-chart-series>
<kendo-chart-series-item color="#337ab7" [data]="chartObject.rates" type="bar" [border]="{ width: 0 }">
</kendo-chart-series-item>
</kendo-chart-series>
</kendo-chart>