【发布时间】:2015-10-15 12:14:10
【问题描述】:
我正在绘制一个代表美国凶杀率的条形图。 我试图通过将基线设置为 > 0 来截断此图表,但代码:
var options = {
chart: {
title: 'Intentional homicide rate per 100,000 population, by country/territory (2000-2013) in the US',
subtitle: 'Intentional homicide is defined as unlawful death purposefully inflicted on a person by another person',
hAxis: {title: 'Year'},
vAxis: {
title: 'Rate per 100,000',
viewWindow:{
max:20,
min:2
},
// ticks: [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100]
},
}
};
没有完成它的工作,并且显示了与我的目标相反的整个范围。
This 是图表的完整代码。 我错了什么?
同样的过程也适用于面积图 (Pluckr example)...怎么会?
【问题讨论】:
标签: javascript charts google-visualization bar-chart