/// <summary>
        /// Initializes the tree map control.
        /// </summary>
        /// <param name="treemap">The XamTreemap.</param>
        public void InitializeTreemap(XamTreemap treemap)
        {
            if (_treemap == null)
            {
                _treemap             = treemap;
                _treemap.ItemsSource = new List <HeatmapViewModel>()
                {
                    this
                };
                _treemap.ItemsSourceRoot = this;
            }
            else
            {
                treemap.ItemsSource     = _treemap.ItemsSource;
                treemap.ItemsSourceRoot = _treemap.ItemsSourceRoot;
                _treemap = treemap;
            }

            //Trigger a refresh on the color mappers.
            TreemapFilter = _treemapFilter;

            // Initialize Grid with Business Equipment node's information
            //TODO-MT find replacement
            //_stockService.RefreshCompanySummary(313, OnRefreshCompaniesSummary);

            _selectedIndustry = "Business Equipment";
            OnPropertyChanged("SelectedIndustry");
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="HeatmapViewModel"/> class.
        /// </summary>
        public HeatmapViewModel()
        {
            _drilledDataLoading = false;

            _stockService = StockYahooDataService.Instance;

            _treemapFilter  = new TreemapFilter();
            _treemapFilters = new List <TreemapFilter>();

            this.IsInitialDataLoading = true;

            SynchronizationContext.Current.Post(x => InitnializeSectorSummary(), null);
        }
        /// <summary>
        /// Adds a new TreemapFilter.
        /// </summary>
        /// <param name="description"></param>
        /// /// <param name="valuePath"></param>
        /// <param name="minimum"></param>
        /// <param name="maximum"></param>
        public void AddTreemapFilter
            (string description, string valuePath, double minimum, double maximum)
        {
            _treemapFilters.Add(new TreemapFilter()
            {
                Description = description,
                ValuePath   = valuePath,
                Minimum     = minimum,
                Maximum     = maximum,
            });

            if (_treemapFilter.Description == null)
            {
                _treemapFilter = _treemapFilters[0];
                OnPropertyChanged("TreemapFilter");
            }

            OnPropertyChanged("TreemapFilters");
        }