Files
XCharts/Assets/XCharts/Runtime/Chart/ParallelChart.cs
monitor1394 1b3fa7fb43 3.0 commit
2021-11-23 13:20:07 +08:00

39 lines
1.1 KiB
C#

/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
using UnityEngine;
namespace XCharts
{
[AddComponentMenu("XCharts/ParallelChart", 25)]
[ExecuteInEditMode]
[RequireComponent(typeof(RectTransform))]
[DisallowMultipleComponent]
public class ParallelChart : BaseChart
{
#if UNITY_EDITOR
protected override void Reset()
{
base.Reset();
AddChartComponentWhenNoExist<ParallelCoord>();
AddChartComponentWhenNoExist<ParallelAxis>();
var tooltip = GetChartComponent<Tooltip>();
tooltip.type = Tooltip.Type.Shadow;
tooltip.trigger = Tooltip.Trigger.Axis;
RemoveData();
Parallel.AddDefaultSerie(this, GenerateDefaultSerieName());
// for (int i = 0; i < 5; i++)
// {
// AddXAxisData("x" + (i + 1));
// }
}
#endif
}
}