Exemple #1
0
 private void CreateGraph()
 {
     m_graph                  = AddUIComponent <UIGraph>();
     m_graph.enabled          = true;
     m_graph.isVisible        = true;
     m_graph.name             = "EmploymentGraph";
     m_graph.size             = new Vector2(250, 120);
     m_graph.relativePosition = new Vector2(chartPadding, 200);
     m_graph.color            = new Color32(200, 200, 200, 255);
     m_graph.AddCurve("TestData", "EN-US", _chartLine, 2, new Color32(132, 55, 55, 255));
 }
Exemple #2
0
        private UIGraph _createGraph(string text, int y)
        {
            m_FMUgraph                  = AddUIComponent <UIGraph>();
            m_FMUgraph.name             = "fmuGraph";
            m_FMUgraph.relativePosition = new Vector3(15f, y);
            m_FMUgraph.width            = 100;
            m_FMUgraph.height           = 100;
            m_FMUgraph.Clear();
            m_FMUgraph.StartTime = DateTime.Now;
            m_FMUgraph.EndTime   = DateTime.Now.AddMinutes(10);
            float[] array9 = new float[] { 1, 2, 3, 6, 5, 4, 1, 2, 3 };

            m_FMUgraph.AddCurve("stringUserData", "localID", array9, 1f, color, float.NegativeInfinity);
            m_FMUgraph.Start();
            m_FMUgraph.isVisible = true;
            m_FMUgraph.color     = new Color32(150, 150, 150, 150);
            m_FMUgraph.enabled   = true;
            m_FMUgraph.Show();
            m_FMUgraph.spriteName = "toto";
            m_FMUgraph.Update();
            return(m_FMUgraph);
        }