0
我正在使用dojocharts創建條形圖,版本是1.9。在這裏我添加了一個指標到條形圖。我想要添加帶有html標籤的文本(如分隔標籤),並且還需要指標上的工具提示。我添加了一個labelFunc來返回我想要的HTML,但它只顯示爲純文本。這裏的html標記和工具提示沒有工作。任何人都建議我可以在dojocharts指標上添加tooltip和html標記。如何使用dojocharts添加指標圖的工具提示
下面是我的代碼
Chart.addPlot("indicator", { type: "Indicator",
vertical:false,
values:30,
offset: { y: -2, x: -50 },
lineStroke: { color: "green",style: "line" },
labels: true,
htmlLabels: true,
// start:true,
// labelStyle:"inside",
//maxBarSize: 35,
fontColor:"red",
// precision: 1,
labelFunc: max,
stroke: {color:"rgb(204, 204, 204)",height:40,width: 25},
outline: "purple",
fill: "#666"
});
感謝您response.here我試圖此提示,但不工作。這是我的代碼。 VAR T2 =新工具提示(圖表, 「指示器」,{ 文本:函數(的chartItem){ console.debug(的chartItem); 返回 「你好」; } });所以告訴我如何顯示指標的工具提示 – sunman 2014-11-03 05:51:38