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 !!!