Beispiel #1
0
        //------------------------------------------


        private string[] GetLabelsTextValues()
        {
            float[]  labelValues = GetLineValues();
            string[] result      = new string[labelValues.Length];

            for (int i = 0; i < labelValues.Length; i++)
            {
                if (customLabelValues != null && customLabelValues.Count > i)
                {
                    result[i] = customLabelValues[i];
                }
                else if (customLabelValues == null || customLabelValues.Count == 0)
                {
                    result[i] = valueFormatter.FormatAxisValue(
                        labelValues[i],
                        labelValues[0],
                        labelValues[labelValues.Length - 1]);
                }
                else
                {
                    break;
                }
            }

            return(result);
        }