js 如何获得横坐标的值
$(function(){varchart;$(document).ready(function(){chart=newHighcharts.Chart({chart:{...
$(function () {
var chart;
$(document).ready(function() {
chart = new Highcharts.Chart({
chart: {
renderTo: 'teamBugPerHeadOutPut',
type: 'column'
},
xAxis: {
categories: ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec']
},
我要做一个判断条件是xAxis的categories:
if (chart.xAxis.categories == 'Jan'){//当横坐标是Jan的时候打开 "地址1",报错,应该如何写
window.location.href= "地址1";} 展开
var chart;
$(document).ready(function() {
chart = new Highcharts.Chart({
chart: {
renderTo: 'teamBugPerHeadOutPut',
type: 'column'
},
xAxis: {
categories: ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec']
},
我要做一个判断条件是xAxis的categories:
if (chart.xAxis.categories == 'Jan'){//当横坐标是Jan的时候打开 "地址1",报错,应该如何写
window.location.href= "地址1";} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询