Refactored Chart data object to avoid exposing JavascriptObject