/// <summary> /// Used by ChartKeeper to set the chart type. /// Does a check on whether the chart type is consistent for 2 series in the log. /// </summary> /// <param name="chartType"></param> public void SetChartType(UIChartTypes chartType) { if (this.chartType > 0 && this.chartType != chartType) { Debug.LogError("Trying to put different ChartTypes into one chart!"); } else { this.chartType = chartType; } }
private void SetChartType(UIChartTypes chartType, int chartIndex) { if (chartObjects.Length > chartIndex) { ChartController controller = chartObjects[chartIndex].GetComponent <ChartController>(); //controller.SeriesCount += 1; controller.SetChartType(chartType); } else { Debug.LogError("Not enough graphs!"); } }
public void SetChartType(int seriesIndex, UIChartTypes chartType) { TimedDataSeries series; // Add a dictionary if dictionary not exists. if (!container.ContainsKey(seriesIndex)) { container.Add(seriesIndex, new TimedDataSeries()); } if (container.TryGetValue(seriesIndex, out series)) { series.ChartType = chartType; } }