Hiding the labels in the value axis for a chart

Hello - I am trying to hide the value axis labels in my bar chart. I am using the following script. Is there any way with this to hide the labels?

if (results.length) {
// The data-chartdata attribute only holds the key value pairs of the data

var chartData = ;

for (var i = 0; i < record.tables[‘TotalPlanBal’].length; i++) {

  var temp = {};

chartData.push({‘value_label’ : ‘Today’, ‘values_1’ : record.tables[“TotalPlanBal”][i].fields[‘Today’]});

chartData.push({‘value_label’ : ‘1 Yr Before’, ‘values_1’ : record.tables[“TotalPlanBal”][i].fields[‘Yr1’]});

chartData.push({‘value_label’ : ‘2 Yrs Before’, ‘values_1’ : record.tables[“TotalPlanBal”][i].fields[‘Yr2’]});

chartData.push({‘value_label’ : ‘3 Yrs Before’, ‘values_1’ : record.tables[“TotalPlanBal”][i].fields[‘Yr3’]});

results.attr(‘data-chartData’, JSON.stringify(chartData));

// The data-graphsdata will store information needed to display the graph.

// A categoryField is specified which is used on the category axis of the graph.

// An array of graphs is specified. For each graph you can specify which field

// in the data is used as the data source. For each graph you can also specify

// the title that is used in a legend.

var graphsData = {

 'categoryField' : 'value_label', 

 'graphs' : [{'title' : '', 'valueField':'values_1'}] 

};

results.attr(‘data-graphsdata’, JSON.stringify(graphsData));

}}

Thank You !!!

Have you tried setting the labels to “” - i.e. ?

What worked for me was to add a new script after the chart script which has a selector on the chart’s id and following content:

var params = JSON.parse(results.attr("data-params"));
params.amValueAxis.color = "white";
results.attr("data-params", JSON.stringify(params));

This is setting the x axis labels text to color white which makes them disappearing.

I couldn’t get this pone to work but the option below worked.

Thanks!!

This worked for me also. Thanks!!