1. add theme property in chart.widget.legend
2. code refactoring in chart.widget.core