如何删除xaxis名称中的超链接。在xaxis标签中是否有任何属性,或者我们是否需要编写任何函数来删除超链接。
在下面的链接中,如何删除动物中的超链接。
{
"chart":{"defaultSeriesType":"column"},
"plotOptions":{"column":{"borderWidth":0}},
"series":[
{"data":[{"x":1.435689E12,"y":6.0,"drilldown":"All-1.435689E12"}],"name":"All","type":"column","tooltip":{"xDateFormat":"%m/%d/%Y"}},
{"data":[{"x":1.435689E12,"y":2.0,"drilldown":"ABCD-1.435689E12"}],"name":"ABCD","type":"column","tooltip":{"xDateFormat":"%m/%d/%Y"}},
{"data":[{"x":1.435689E12,"y":1.0,"drilldown":"EFGH-1.435689E12"}],"name":"EFGH","type":"column","tooltip":{"xDateFormat":"%m/%d/%Y"}},
{"data":[{"x":1.435689E12,"y":2.0,"drilldown":"IJKL-1.435689E12"}],"name":"IJKL","type":"column","tooltip":{"xDateFormat":"%m/%d/%Y"}}],
"title":{"text":"Artifact Created"},
"xAxis":[
{"minTickInterval":8.64E7,"type":"datetime","labels":{"rotation":45.0},"dateTimeLabelFormats":{"day":"%m/%d/%Y"},"title": {"text":"Date"},"showEmpty":false},
{"type":"category","id":"drilldown"}],
"yAxis":[
{"min":0.0,"title":{"text":"Count"},"showEmpty":false},
{"labels":{"enabled":false},"title":{"text":""},"id":"drilldown","gridLineWidth":0}],
"drilldown":
{"series":[
{"data":[{"y":1.0,"name":"artf1001"},{"y":1.0,"name":"artf1002"},{"y":1.0,"name":"artf1003"},{"y":1.0,"name":"artf1004"}, {"y":1.0,"name":"artf1005"},{"y":1.0,"name":"artf1006"}],"name":"All","type":"column","id":"All-1.435689E12","xAxis":"drilldown","yAxis":"drilldown"},
{"data":[{"y":1.0,"name":"artf1004"},{"y":1.0,"name":"artf1005"} ],"name":"ABCD","type":"column","id":"ABCD-1.435689E12","xAxis":"drilldown","yAxis":"drilldown"},
{"data":[{"y":1.0,"name":"artf1001"}],"name":"EFGH","type":"column","id":"EFGH-1.435689E12","xAxis":"drilldown","yAxis":"drilldown"},
{"data":[{"y":1.0,"name":"artf1002"},{"y":1.0,"name":"artf1003"} ],"name":"IJKL","type":"column","id":"IJKL-1.435689E12","xAxis":"drilldown","yAxis":"drilldown"}]
}
}
答案 0 :(得分:2)
简单方法是将tick downdown函数覆盖为空。
Highcharts.Tick.prototype.drillable = function () {};