Refactor the implementation of the [table-chart] Shortcode

See https://github.com/soderlind/tablepress_chartist/issues/2