fix histogram chart rendering