fix bug

Fixed bugs :
- legend not correct
- gradientColor when negative values in HorizontalBar