我正在关注此图表演示: HighCharts
我想像这样设置X轴上的特定范围
范围(动态):
["04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","00","01","02","03","04" ].
答案 0 :(得分:0)
您可以使用分类的xAxis,例如:
xAxis.categories = [NSArray arrayWithObjects:@"04",@"05",@"06",@"07",@"08",@"09",@"10",@"11",@"12",@"13",@"14",@"15",@"16",@"17",@"18",@"19",@"20",@"21",@"22",@"23",@"00",@"01",@"02",@"03",@"04", nil];
答案 1 :(得分:0)
我得到了解决方案,这个问题可以这样解决:
HIXAxis *xaxis = [[HIXAxis alloc]init];
xaxis.categories = Range;
xaxis.categories = [NSArray arrayWithObjects:@"04",@"05",@"06",@"07",@"08",@"09",@"10",@"11",@"12",@"13",@"14",@"15",@"16",@"17",@"18",@"19",@"20",@"21",@"22",@"23",@"00",@"01",@"02",@"03",@"04", nil];
还需要将xaxis添加到选项中。