Пример #1
0
        private void BarYAxis_FormatLabel(object sender, AxisFormatLabelEventArgs e)
        {
            var item = e.Item as PopulationData;

            if (item.Age < 100)
            {
                e.Label = item.Age.ToString("0");
            }
            else
            {
                e.Label = item.Age.ToString("0") + "+";
            }
        }
Пример #2
0
        private void BarXAxis_FormatLabel(object sender, AxisFormatLabelEventArgs e)
        {
            var value = Math.Abs((double)e.Item);

            e.Label = value.ToString("0M");
        }
Пример #3
0
        private void RadiusAxis_FormatLabel(object sender, AxisFormatLabelEventArgs e)
        {
            var value = (double)e.Item;

            e.Label = value.ToString("0M");
        }