我试图制作一个气泡图,用字符串数据来说明。我要做的是:
var chart = new CanvasJS.Chart("chartContainer",
{
zoomEnabled: true,
title:{
text: "Day at a Glance"
},
axisX: {
title:"Airline",
},
axisY: {
title:"Terminal"
},
legend:{
verticalAlign: "bottom",
horizontalAlign: "left"
},
data: [
{
type: "bubble",
xValueType: "dateTime",
dataPoints: [
// { x: 64.8, y: 2.66, z:12074.4 , name: "India"},
{ x: "H", y: "American Airlines", z:"3", name: "American Airlines"}
]
}
]
});但是canvas.js似乎不允许在x和y数据池上使用字符串。我已经试过用名字了,但不起作用。怎样才能使我的气泡图在x和y轴上显示字符串值?
https://stackoverflow.com/questions/31068961
复制相似问题