Inheritance: LiveCharts.ChartUpdater
Esempio n. 1
0
        /// <summary>
        /// Initializes a new instance of PieChart class
        /// </summary>
        public PieChart()
        {
            var freq = DisableAnimations ? TimeSpan.FromMilliseconds(10) : AnimationsSpeed;
            var updater = new Components.ChartUpdater(freq);
            ChartCoreModel = new PieChartCore(this, updater);

            this.SetIfNotSet(SeriesProperty, new SeriesCollection());
        }
Esempio n. 2
0
        /// <summary>
        /// Initializes a new instance of PieChart class
        /// </summary>
        public PieChart()
        {
            var freq    = DisableAnimations ? TimeSpan.FromMilliseconds(10) : AnimationsSpeed;
            var updater = new Components.ChartUpdater(freq);

            ChartCoreModel = new PieChartCore(this, updater);

            this.SetIfNotSet(SeriesProperty, new SeriesCollection());
        }
        /// <summary>
        /// Initializes a new instance of CartesianChart class
        /// </summary>
        public CartesianChart()
        {
            var freq = DisableAnimations ? TimeSpan.FromMilliseconds(10) : AnimationsSpeed;
            var updater = new Components.ChartUpdater(freq);
            ChartCoreModel = new CartesianChartCore(this, updater);

            SetValue(SeriesProperty,
                Windows.ApplicationModel.DesignMode.DesignModeEnabled
                    ? GetDesignerModeCollection()
                    : new SeriesCollection());

            this.SetIfNotSet(VisualElementsProperty, new VisualElementsCollection());
        }
Esempio n. 4
0
        /// <summary>
        /// Initializes a new instance of CartesianChart class
        /// </summary>
        public CartesianChart()
        {
            var freq    = DisableAnimations ? TimeSpan.FromMilliseconds(10) : AnimationsSpeed;
            var updater = new Components.ChartUpdater(freq);

            ChartCoreModel = new CartesianChartCore(this, updater);

            SetValue(SeriesProperty,
                     Windows.ApplicationModel.DesignMode.DesignModeEnabled
                    ? GetDesignerModeCollection()
                    : new SeriesCollection());

            this.SetIfNotSet(VisualElementsProperty, new VisualElementsCollection());
        }