check if bar color apply from data- atttribute of element