예제 #1
0
    public void SelectedVis(string optionName)
    {
        visCard = GameObject.Find("Chart_Target_0" + optionName[0]).GetComponent <ChartManager>();
        int           maxDimensions = visCard.GetMaxDim();
        List <string> AxisOptions   = new List <string>();

        _instrutorSteps[0] = optionName;
        instrutor.text     = _instrutorSteps[0] + "\n" + _instrutorSteps[1] + "\n" + _instrutorSteps[2];

        for (int i = 0; i < maxDimensions; i++)
        {
            switch (i)
            {
            case 0:
                AxisOptions.Add(visCard.GetChartType() == "parallel_coordinates" ? "Vertical Axis" : "X Axis");
                break;

            case 1:
                AxisOptions.Add(visCard.GetChartType() == "parallel_coordinates" ? "Color" : "Y Axis");
                break;

            case 2:
                AxisOptions.Add("Color");
                break;
            }
        }


        _rm.SetRadialOptions(AxisOptions);
        _rm.ChangeFatiaTag("AxisOption_Item");
    }