for use rename it to onLegendStyle.js