Seporate chart logic implementation by views

No new functionality