/// <summary>
        ///
        /// </summary>
        /// <param name="t"></param>
        /// <param name="prefab"></param>
        /// <returns></returns>
        ScrollableAxisChart IMixedChartDelegate.CreateCategoryView(Type t, ScrollableAxisChart prefab)
        {
            string type = t.FullName;
            ScrollableAxisChart chart = prefab;

            if (chart == null)
            {
                if (mPrefabs == null || mPrefabs.TryGetValue(type, out chart) == false)
                {
                    return(null);
                }
            }

            if (chart.IsCanvas != IsCanvas)
            {
                return(null);
            }

            GameObject obj = (GameObject)GameObject.Instantiate(chart.gameObject);

            obj.transform.SetParent(transform);
            ChartCommon.HideObject(obj, true);
            chart = obj.GetComponent <ScrollableAxisChart>();
            mContainedCharts.Add(chart);
            return(chart);
        }
 void IMixedChartDelegate.ReactivateChart(ScrollableAxisChart chart)
 {
     if (mContainedCharts.Contains(chart) == false)
     {
         Debug.LogWarning("chart is not contained within the mixedSeriesChart");
     }
     chart.gameObject.SetActive(true);
 }
 void IMixedChartDelegate.RealaseChart(ScrollableAxisChart chart)
 {
     if (mContainedCharts.Remove(chart) == false)
     {
         Debug.LogWarning("chart is not contained within the mixedSeriesChart");
     }
     ChartCommon.SafeDestroy(chart.gameObject);
 }
        CategoryChartView CreateCategoryView(Type t, ScrollableAxisChart prefab)
        {
            var chart = mParent.CreateCategoryView(t, prefab);

            if (chart == null)
            {
                return(null);
            }
            var cat = chart.ScrollableData.GetDefaultCategory();
            CategoryChartView view = new CategoryChartView();

            view.mCategory = cat;
            view.Filter    = null;
            view.mObject   = chart;
            view.mType     = t;
            return(view);
        }