/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
using UnityEngine;
using System.Collections.Generic;
using System;
using UnityEngine.UI;
using UnityEngine.EventSystems;
namespace XCharts
{
///
/// The base class of all charts.
/// 所有Chart的基类。
///
public partial class BaseChart
{
///
/// The name of chart.
///
public string chartName
{
get { return m_ChartName; }
set
{
if (!string.IsNullOrEmpty(value) && XChartsMgr.Instance.ContainsChart(value))
{
Debug.LogError("chartName repeated:" + value);
}
else
{
m_ChartName = value;
}
}
}
///
/// The theme.
///
public ChartTheme theme { get { return m_Theme; } set { m_Theme = value; } }
///
/// The title setting of chart.
/// 标题组件
///
public Title title { get { return m_Titles.Count > 0 ? m_Titles[0] : null; } }
public List
titles { get { return m_Titles; } }
///
/// The legend setting of chart.
/// 图例组件
///
public Legend legend { get { return m_Legends.Count > 0 ? m_Legends[0] : null; } }
public List