Currently using Highcharts in JSON format with the following syntax:
var neutral_color = '#c4c4c4',
medium_grey = '#929292';
lineChartJSON['chart']['plotBorderColor'] = medium_grey;
lineChartJSON['chart']['plotBorderWidth'] = 1;
lineChartJSON['chart']['zoomType'] = 'xy';
lineChartJSON['yAxis']['gridLineColor'] = medium_grey;
lineChartJSON['yAxis']['gridLineWidth'] = 1;
lineChartJSON['yAxis']['labels'] = { style: { color: neutral_color} };
lineChartJSON['xAxis']['lineColor'] = medium_grey;
lineChartJSON['xAxis']['lineWidth'] = 1;
lineChartJSON['xAxis']['tickColor'] = medium_grey;
lineChartJSON['xAxis']['labels']['style'] = { color: neutral_color };
lineChartJSON['xAxis']['title']['style'] = { color: neutral_color };
Seeking to change the border style around the columns to null or the same color as the background. Currently, they default to white. Additionally, looking to customize the colors of the xAxis and yAxis labels, currently defaulted to #666.
Struggling with the correct syntax as the documentation refers to a different data format. The format
lineChartJSON['yAxis']['labels'] = { style: { color: neutral_color} };
does not work without error, but lineChartJSON['yAxis']['labels']['style'] = { color: neutral_color};
does throw an "element not defined" error.
Noting that 'lineColor
and tickColor
functions properly.
Any recommendations or resources for better understanding the Highcharts array syntax in JSON versus JS?