public void InitializeChart(AnomalyDetectionScenarioType scenarioType, AnomalyDetectorServiceType detectionMode, double sensitivy)
        {
            if (AnomalyDetectorScenarioLoader.AllModelData.ContainsKey(scenarioType))
            {
                curScenario = AnomalyDetectorScenarioLoader.AllModelData[scenarioType];
                if (scenarioType == AnomalyDetectionScenarioType.Live)
                {
                    curScenario.AllData.Clear();
                }

                DisplayBasicData(curScenario);

                // set default value: slider and radio buttons
                this.sensitivitySlider.Value = sensitivy;
                SelectedDetectionMode        = detectionMode;
            }
        }
        private void SetYAxisLabels(double max, double min, AnomalyDetectionScenarioType scenarioType)
        {
            string format = "F2";

            if (scenarioType == AnomalyDetectionScenarioType.Live)
            {
                min    = 0;
                max    = MaxVolumeValue;
                format = "F0";
            }

            double step = (max - min) / 4;

            this.y1_Lbl.Text = min.ToString(format);
            this.y2_Lbl.Text = (min + step).ToString(format);
            this.y3_Lbl.Text = (min + 2 * step).ToString(format);
            this.y4_Lbl.Text = (min + 3 * step).ToString(format);
            this.y5_Lbl.Text = max.ToString(format);
        }