Move inline chart rendering into separate classes

refs #5679
Remove test code

refs #5679