Esempio n. 1
0
        public LineVM()
        {
            DollarFormatter       = (dollars) => dollars.ToString("C");
            SecondLookupFormatter = (index) => Seconds.ElementAt((int)index).ToString();

            Seconds = new List <double> {
                // Demonstrate the lookup values for the x-axis, one per index
                10, 25, 300, 450
            };

            // Add actual values, one per index
            Sales = new ChartValues <double>();
            Sales.Add(0);
            Sales.Add(100);
            Sales.Add(400);
            Sales.Add(1000);
        }