我有一个带有向下钻取选项的图表。钻取图表xaxis标题是日期。根据日期对值进行调整。在向下钻取数据的详细信息时,正在显示。
在深入钻取时,钻取时显示的日期也在显示。
向下钻取时无法删除xaxis标题。
{
"chart":{
"width":800,
"height":400,
"defaultSeriesType":"column",
"marginLeft":70,"marginTop":80},
"legend":{
"align":"left",
"layout":"vertical",
"verticalAlign":"top",
"x":100,"y":70},
"plotOptions":{
"column":{
"borderWidth":0}},
"series":[{
"data":[{
"x":1.4345658E12,
"y":3.0,
"drilldown":"1.4345658E12"},
{
"x":1.4346522E12,
"y":2.0,
"drilldown":"1.4346522E12"}],
"name":"All",
"type":"column",
"tooltip":{
"xDateFormat":"%m/%d/%Y"}},
{
"data":[],
"name":"Abcd",
"type":"column",
"tooltip":{
"xDateFormat":"%m/%d/%Y"}},
{
"data":[],
"name":"Efgh",
"type":"column",
"tooltip":{
"xDateFormat":"%m/%d/%Y"}},
{
"data":[],
"name":"Ijkl",
"type":"column",
"tooltip":{
"xDateFormat":"%m/%d/%Y"}}],
"title":{
"text":"Alphabet"},
"xAxis":[{
"minTickInterval":8.64E7,
"min":1.4343066E12,
"max":1.4346522E12,
"type":"datetime",
"dateTimeLabelFormats":{
"day":"%m/%d/%Y"},
"title":{
"text":"Date"},
"id":"default"},
{
"type":"category",
"id":"drilldown"}],
"yAxis":{
"min":0.0,
"title":{
"text":"Count"}},
"drilldown":{
"series":[{
"data":[{
"y":1.0,
"name":"A1"},
{"y":1.0,
"name":"B1"},
{"y":1.0,
"name":"C1"}],
"id":"1.4345658E12",
"xAxis":"drilldown"},
{
"data":[{
"y":1.0,
"name":"A11"},
{
"y":1.0,
"name":"B11"}],
"id":"1.4346522E12",
"xAxis":"drilldown"}]
}
}
答案 0 :(得分:0)
要隐藏标题,请使用axis.showEmpty
选项。但是,当尝试隐藏轴和设置轴的最小值和最大值时,该选项中存在错误。
演示:http://jsfiddle.net/vncnwd66/3/
错误report。