我使用的是Ignite UI igDataChart。序列的y轴不显示具有较大值的列的整个高度。如图所示,任何大于7的值都将被截断。在中间的列中,有3列的值大于7。另外2列= 7。右侧突出显示的列的值为44,如工具提示所示,因此图表知道这些值,只是没有正确绘制该列。我还没有找到一个配置设置来控制这一点。有没有人知道我需要改变什么?
下面是configuration对象:
$("#CurrentInShopChart").igDataChart({
width: "50%",
height: "600px",
title: "Trucks in shop",
subtitle: "Number of trucks currently in shop by facility",
dataSource: chartData,
axes: [
{
name: "FacilitiesAxis",
type: "categoryX",
title: "Facility",
label: "FACILITY",
labelAngle: -90,
interval: 1
},
{
name: "NumInShopAxis",
type: "numericY",
minimumValue: 0,
title: "Number of trucks in shop",
}
],
series: [
{
showTooltip: true,
name: "Trucks",
type: "column",
isHighlightingEnabled: true,
isTransitionInEnabled: true,
xAxis: "FacilitiesAxis",
yAxis: "NumInShopAxis",
valueMemberPath: "NUMINSHOP"
}
]
});

发布于 2015-08-20 22:06:35
我通过将发送到图表中的值转换为number - Number( value )来修复此问题。Ignite UI图表逻辑不喜欢值是数字的字符串表示这一事实。
https://stackoverflow.com/questions/32105665
复制相似问题