I have recently started working on dojo. I am facing problems in the following cases.
我最近开始研究dojo。我在以下情况下遇到问题。
- How can i provide a unique link (href) in each bar in the bar chart? When a user clicks on a bar or label, he should be taken to a related jsp/html page.Basically, i am looking for a clickable bar or tooltip.
如何在条形图中的每个条形图中提供唯一链接(href)?当用户点击栏或标签时,他应该被带到相关的jsp / html页面。基本上,我正在寻找可点击的栏或工具提示。
This code didn't works, because it will be rendered as special characters.
此代码不起作用,因为它将呈现为特殊字符。
chart2.addAxis("y", {
vertical: true,
fixLower: "none",
fixUpper: "none",
natural: true,
majorTick: { length: 3 },
labels: [{value: 1, text: <a href="url">Link text</a> }, ...]
});
<div id="chart2" style="height: 100px;">
<div style="margin: 0px; padding: 0px; ...">
<div style="margin: 0px; padding: 0px; ... ">Link text</div> //label
</div>
...
Please help.
1 个解决方案
#1
Unfortunately, it's not possible to do what you ask yet with dojox.charting
.
不幸的是,用dojox.charting做你要求的东西是不可能的。
FWIW, there's a pretty good example of what you can do with dojox.charting
at SitePen.
FWIW,有一个很好的例子,你可以用SitePen的dojox.charting做些什么。
#1
Unfortunately, it's not possible to do what you ask yet with dojox.charting
.
不幸的是,用dojox.charting做你要求的东西是不可能的。
FWIW, there's a pretty good example of what you can do with dojox.charting
at SitePen.
FWIW,有一个很好的例子,你可以用SitePen的dojox.charting做些什么。