option = {
...
series: [
{
name: '売り上げ',
type: 'bar',
stack: '总量',
label: {
normal: {
show: true,
position: 'top',
formatter:function(obj){
var rmb = obj['value'];
rmb = rmb.toFixed(0);
var jpy = rmb * 17;
return rmb + " (" + jpy +" 億円" + ")";
}
}
},
data: [16, 100, 200, 300, 500, 700, 750]
},
]
}
More than 5 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
List of users who liked
10