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