如何制作拥有数千个分隔符的人口金字塔? 问题是我必须采用这种格式:
var formatter = new google.visualization.NumberFormat({
pattern: ';'
});
因为我不希望出现负面符号。
答案 0 :(得分:1)
我添加一个例子:
http://jsfiddle.net/dnenjgkg/9/
sealed class InstituteSearchDetails {
data class InstituteWithCenterId(val centerId: String): InstituteSearchDetails()
data class InstituteWithNameAndCity(val name: String, val city: String): InstituteSearchDetails()
}
fun handleInstitute(instituteSearchDetails: InstituteSearchDetails) {
when (instituteSearchDetails) {
is InstituteSearchDetails.InstituteWithCenterId -> println(instituteSearchDetails.centerId)
is InstituteSearchDetails.InstituteWithNameAndCity -> println(instituteSearchDetails.name)
}
}
var formatter = new google.visualization.NumberFormat({ 模式:'###,###' }); 用逗号显示但在女性身上显示“ - ”
答案 1 :(得分:0)
Google Chart上的一些专家? :)
在文档中没有出现: https://developers.google.com/chart/interactive/docs/reference#numberformat
我只需要将数字放在绝对值中......