improving attribute value api function, bug fixing highcharts