我正在使用融合图表想要在点击融合条形图栏时显示弹出窗口请帮助我我正在使用 json 方法生成图表这里是 html:
<div id="chartContainerscoreConfidence" class="testseries-report-charts">
</div>
这是json代码:
FusionCharts.ready(function () {
var revenueChart = new FusionCharts({
"type": "StackedColumn2DLine",
"renderAt": "chartContainerscoreConfidence",
"width": "100%",
"height": "300",
"dataFormat": "json",
"dataSource": {
"chart": {
"caption": "Time Taken",
"bgcolor": "FFFFFF",
"plotgradientcolor": "",
"showalternatehgridcolor": "0",
"showplotborder": "0",
"divlinecolor": "CCCCCC",
"showvalues": "0",
"showcanvasborder": "0",
"pyaxisname": "Question No",
"syaxisname": "Time Taken (in minutes)",
"numberprefix": "",
"labeldisplay": "STAGGER",
"slantlabels": "1",
"canvasborderalpha": "0",
"legendshadow": "0",
"legendborderalpha": "0",
"showborder": "0"
},
"categories": [
{
"category": [
{
"label": "1"
},
{
"label": "2"
},
{
"label": "3"
},
{
"label": "4"
},
{
"label": "5"
},
{
"label": "6"
},
{
"label": "7"
},
{
"label": "8"
}
]
}
],
"dataset": [
{
"seriesname": "Time taken by you",
"color": "008ee4",
"data": [
{
"value": "3",
"link": " "
},
{
"value": "4"
},
{
"value": "1"
},
{
"value": "2"
},
{
"value": "1"
},
{
"value": "3"
},
{
"value": "4"
},
{
"value": "3"
}
]
},
{
"seriesname": "time taken by average student",
"parentyaxis": "S",
"renderas": "Line",
"color": "f8bd19",
"data": [
{
"value": "1"
},
{
"value": "2"
},
{
"value": "4"
},
{
"value": "3"
},
{
"value": "2"
},
{
"value": "3"
},
{
"value": "3"
},
{
"value": "4"
}
]
}
]
}
});
revenueChart.render();
})
我可以重定向任何网址,但无法使用 jquery 打开弹出窗口
js小提琴:http: //jsfiddle.net/y3H2G/226/