Procedure

TfrmGraphs.SeriesForLabels

Module

fGraphs

Last Modified

7/15/2014 3:26:36 PM

Visibility

Private

Owner

TfrmGraphs

Declaration

procedure SeriesForLabels(aChart: TChart; aID: string; pad: double);

Called-By Hierarchy


                                       TfrmGraphs.SeriesForLabels
                                           TfrmGraphs.SizeDates┘ 
                                       TfrmGraphs.ChartOnZoom┤   
                                       TfrmGraphs.MakeChart┤ │   
                             TfrmGraphs.MakeSeparateItems┤ │ │   
                                TfrmGraphs.MakeSeparate┘ │ │ │   
                               TfrmGraphs.DisplayData┤   │ │ │   
                             TfrmFrame.ClearPatient┤ │   │ │ │   
                           TfrmFrame.SetupPatient┘ │ │   │ │ │   
                      UpdatePatientInfoForAlert┤   │ │   │ │ │   
                   TfrmFrame.mnuFileNextClick┘ │   │ │   │ │ │   
                 TfrmFrame.mnuFileOpenClick┤   │   │ │   │ │ │   
                     TfrmFrame.UMInitiate┤ │   │   │ │   │ │ │   
            TfrmFrame.mnuFileNextClick...┤ │   │   │ │   │ │ │   
            TfrmFrame.mnuFileRefreshClick┤ │   │   │ │   │ │ │   
            TfrmOrders.CheckOrderStatus┤ │ │   │   │ │   │ │ │   
        TfrmOrders.mnuActChgEvntClick┤ │ │ │   │   │ │   │ │ │   
           TfrmOrders.mnuActHoldClick┤ │ │ │   │   │ │   │ │ │   
         TfrmOrders.mnuActUnholdClick┤ │ │ │   │   │ │   │ │ │   
          TfrmOrders.mnuActRenewClick┤ │ │ │   │   │ │   │ │ │   
         TfrmOrders.mnuActChangeClick┤ │ │ │   │   │ │   │ │ │   
           TfrmOrders.mnuActCopyClick┘ │ │ │   │   │ │   │ │ │   
                 TfrmMeds.mnuActDCClick┤ │ │   │   │ │   │ │ │   
                TfrmMeds.CheckMedStatus┘ │ │   │   │ │   │ │ │   
             TfrmMeds.mnuActHoldClick┤   │ │   │   │ │   │ │ │   
            TfrmMeds.mnuActRenewClick┤   │ │   │   │ │   │ │ │   
           TfrmMeds.mnuActUnholdClick┤   │ │   │   │ │   │ │ │   
           TfrmMeds.mnuActChangeClick┤   │ │   │   │ │   │ │ │   
             TfrmMeds.mnuActCopyClick┤   │ │   │   │ │   │ │ │   
           TfrmMeds.mnuActRefillClick┘   │ │   │   │ │   │ │ │   
                       TfrmFrame.ViewInfo┘ │   │   │ │   │ │ │   
                    TfrmDCSumm.ViewInfo┤   │   │   │ │   │ │ │   
                  TfrmConsults.ViewInfo┤   │   │   │ │   │ │ │   
          TfrmFrame.pnlRemindersMouseUp┤   │   │   │ │   │ │ │   
           TfrmFrame.RemindersChanged┘ │   │   │   │ │   │ │ │   
               TfrmFrame.FormCreate┘   │   │   │   │ │   │ │ │   
                 TfrmFrame.pnlCIRNClick┤   │   │   │ │   │ │ │   
           TfrmFrame.pnlVistaWebClick┤ │   │   │   │ │   │ │ │   
                TfrmFrame.FormKeyDown┘ │   │   │   │ │   │ │ │   
              TfrmFrame.pnlPatientClick┤   │   │   │ │   │ │ │   
                TfrmFrame.pnlVisitClick┤   │   │   │ │   │ │ │   
          TfrmFrame.pnlPrimaryCareClick┤   │   │   │ │   │ │ │   
            TfrmFrame.pnlRemindersClick┤   │   │   │ │   │ │ │   
             TfrmFrame.pnlPostingsClick┤   │   │   │ │   │ │ │   
                 TfrmFrame.pnlFlagClick┤   │   │   │ │   │ │ │   
                   TfrmFrame.laMHVClick┤   │   │   │ │   │ │ │   
                  TfrmFrame.laVAA2Click┤   │   │   │ │   │ │ │   
                    TfrmOrders.ViewInfo┤   │   │   │ │   │ │ │   
                      TfrmMeds.ViewInfo┤   │   │   │ │   │ │ │   
                   TfrmSurgery.ViewInfo┤   │   │   │ │   │ │ │   
                     TfrmNotes.ViewInfo┤   │   │   │ │   │ │ │   
                  TfrmProblems.ViewInfo┘   │   │   │ │   │ │ │   
          TfrmFrame.mnuFileNotifRemoveClick┤   │   │ │   │ │ │   
                  TfrmFrame.NextButtonClick┘   │   │ │   │ │ │   
                TfrmFrame.SetUpNextButton┘     │   │ │   │ │ │   
          TfrmFrame.mnuFileOpenClick...┤       │   │ │   │ │ │   
                   TfrmFrame.FormResize┘       │   │ │   │ │ │   
                 TfrmFrame.ChangeFont┘         │   │ │   │ │ │   
         TfrmFrame.LoadSizesForUser┤           │   │ │   │ │ │   
    TfrmFrame.LoadUserPreferences┘ │           │   │ │   │ │ │   
           TfrmFrame.UMInitiate┘   │           │   │ │   │ │ │   
         TfrmFrame.mnuFontSizeClick┘           │   │ │   │ │ │   
                  TfrmFrame.mnuFileOpenClick...┤   │ │   │ │ │   
               TfrmFrame.AllowCCOWContextChange┤   │ │   │ │ │   
                TfrmFrame.mnuFileNextClick...┤ │   │ │   │ │ │   
                TfrmFrame.mnuFileOpenClick...┤ │   │ │   │ │ │   
       TfrmFrame.mnuFileResumeContextSetClick┘ │   │ │   │ │ │   
                    TfrmFrame.UpdateCCOWContext┤   │ │   │ │ │   
                TfrmFrame.mnuFileOpenClick...┤ │   │ │   │ │ │   
              TfrmFrame.ctxContextorCommitted┤ │   │ │   │ │ │   
               TfrmFrame.StartCCOWContextor┘ │ │   │ │   │ │ │   
                     TfrmFrame.FormCreate┘   │ │   │ │   │ │ │   
       TfrmFrame.mnuFileResumeContextGetClick┘ │   │ │   │ │ │   
         TfrmFrame.mnuFileResumeContextSetClick┘   │ │   │ │ │   
                            TfrmReports.ClearPtData┤ │   │ │ │   
                        TfrmFrame.ClearPatient...┘ │ │   │ │ │   
                                  TfrmReports.Graph┤ │   │ │ │   
                       TfrmReports.tvReportsClick┘ │ │   │ │ │   
                TfrmFrame.lstCIRNLocationsClick┤   │ │   │ │ │   
                          TfrmFrame.SetUpCIRN┘ │   │ │   │ │ │   
                  TfrmFrame.SetupPatient...┘   │   │ │   │ │ │   
                        TfrmReports.DisplayPage┤   │ │   │ │ │   
                       TfrmReports.LoadTreeView┤   │ │   │ │ │   
                      TfrmReports.DisplayPage┤ │   │ │   │ │ │   
         TfrmOptionsReportsDefault.btnOKClick┤ │   │ │   │ │ │   
      TfrmOptionsReportsDefault.btnResetClick┤ │   │ │   │ │ │   
       TfrmOptionsReportsCustom.btnApplyClick┘ │   │ │   │ │ │   
        TfrmOptionsReportsCustom.btnOKClick┘   │   │ │   │ │ │   
               TfrmReports.ProcessNotifications┤   │ │   │ │ │   
                      TfrmReports.DisplayPage┘ │   │ │   │ │ │   
                   TfrmReports.tvReportsKeyDown┤   │ │   │ │ │   
                TfrmReports.tvProceduresKeyDown┤   │ │   │ │ │   
                    TfrmReports.chkMaxFreqClick┤   │ │   │ │ │   
           TfrmOptionsReportsDefault.btnOKClick┤   │ │   │ │ │   
        TfrmOptionsReportsDefault.btnResetClick┤   │ │   │ │ │   
      TfrmOptionsReportsCustom.btnApplyClick...┘   │ │   │ │ │   
                        TfrmGraphs.chkItemsTopClick┤ │   │ │ │   
                     TfrmGraphs.chkItemsBottomClick┤ │   │ │ │   
                 TfrmGraphs.mnuPopGraphIsolateClick┤ │   │ │ │   
                      TfrmGraphs.cboDateRangeChange┤ │   │ │ │   
                    TfrmReports.lstDateRangeClick┤ │ │   │ │ │   
                         TfrmReports.GraphPanel┘ │ │ │   │ │ │   
                         TfrmReports.Graph...┤   │ │ │   │ │ │   
                TfrmReports.tvReportsClick...┘   │ │ │   │ │ │   
                            TfrmGraphs.Initialize┤ │ │   │ │ │   
                      TfrmFrame.ClearPatient...┤ │ │ │   │ │ │   
                TfrmFrame.mnuToolsGraphingClick┤ │ │ │   │ │ │   
                         TfrmLabs.grdLabClick┤ │ │ │ │   │ │ │   
                      TfrmLabs.tvReportsClick┤ │ │ │ │   │ │ │   
                       TfrmLabs.DisplayPage┤ │ │ │ │ │   │ │ │   
                      TfrmLabs.LoadTreeView┤ │ │ │ │ │   │ │ │   
                     TfrmLabs.DisplayPage┤ │ │ │ │ │ │   │ │ │   
TfrmOptionsReportsCustom.btnApplyClick...┘ │ │ │ │ │ │   │ │ │   
                TfrmLabs.cmdOtherTestsClick┤ │ │ │ │ │   │ │ │   
                   TfrmLabs.chkMaxFreqClick┤ │ │ │ │ │   │ │ │   
              TfrmLabs.ProcessNotifications┤ │ │ │ │ │   │ │ │   
                     TfrmLabs.DisplayPage┘ │ │ │ │ │ │   │ │ │   
                                  ..(rec)..┤ │ │ │ │ │   │ │ │   
                  TfrmLabs.tvReportsKeyDown┤ │ │ │ │ │   │ │ │   
         TfrmFrame.lstCIRNLocationsClick...┘ │ │ │ │ │   │ │ │   
                                    ..(rec)..┘ │ │ │ │   │ │ │   
                     TfrmReports.ClearPtData...┤ │ │ │   │ │ │   
                           TfrmReports.Graph...┘ │ │ │   │ │ │   
                              TfrmGraphs.FormShow┤ │ │   │ │ │   
                TfrmGraphs.btnChangeSettingsClick┤ │ │   │ │ │   
                 TfrmReports.btnChangeViewClick┘ │ │ │   │ │ │   
                     TfrmGraphs.CheckExpandedLabs┤ │ │   │ │ │   
                          TfrmGraphs.ItemsClick┘ │ │ │   │ │ │   
                    TfrmGraphs.DisplayData...┤   │ │ │   │ │ │   
               TfrmGraphs.lvwItemsBottomClick┤   │ │ │   │ │ │   
                   TfrmGraphs.Initialize...┤ │   │ │ │   │ │ │   
                    TfrmGraphs.CheckContext┤ │   │ │ │   │ │ │   
                      TfrmGraphs.FormShow┘ │ │   │ │ │   │ │ │   
               TfrmGraphs.chkDualViewsClick┤ │   │ │ │   │ │ │   
                 TfrmGraphs.Initialize...┤ │ │   │ │ │   │ │ │   
                      TfrmGraphs.FormShow┤ │ │   │ │ │   │ │ │   
                                   Layout┤ │ │   │ │ │   │ │ │   
                     TfrmGraphs.GetSize┘ │ │ │   │ │ │   │ │ │   
                  TfrmGraphs.FormShow┘   │ │ │   │ │ │   │ │ │   
     TfrmGraphs.mnuPopGraphDualViewsClick┤ │ │   │ │ │   │ │ │   
                TfrmGraphs.ViewSelections┘ │ │   │ │ │   │ │ │   
          TfrmReports.tvReportsClick...┤   │ │   │ │ │   │ │ │   
     TfrmGraphs.btnGraphSelectionsClick┘   │ │   │ │ │   │ │ │   
  TfrmReports.btnGraphSelectionsClick┘     │ │   │ │ │   │ │ │   
                     TfrmGraphs.GraphSwitch┤ │   │ │ │   │ │ │   
                     TfrmGraphs.GraphSwap┘ │ │   │ │ │   │ │ │   
        TfrmGraphs.mnuPopGraphSwapClick┘   │ │   │ │ │   │ │ │   
                      TfrmGraphs.SplitClick┤ │   │ │ │   │ │ │   
         TfrmGraphs.mnuPopGraphSplitClick┘ │ │   │ │ │   │ │ │   
           TfrmGraphs.mnuPopGraphClearClick┤ │   │ │ │   │ │ │   
                      TfrmGraphs.AutoSelect┤ │   │ │ │   │ │ │   
                   TfrmGraphs.ViewsChange┘ │ │   │ │ │   │ │ │   
           TfrmGraphs.lstViewsTopChange┤   │ │   │ │ │   │ │ │   
             TfrmGraphs.Initialize...┤ │   │ │   │ │ │   │ │ │   
            TfrmGraphs.GraphSwitch...┤ │   │ │   │ │ │   │ │ │   
     TfrmGraphs.cboDateRangeChange...┤ │   │ │   │ │ │   │ │ │   
         TfrmGraphs.ViewSelections...┘ │   │ │   │ │ │   │ │ │   
        TfrmGraphs.lstViewsBottomChange┘   │ │   │ │ │   │ │ │   
             TfrmGraphs.Initialize...┤     │ │   │ │ │   │ │ │   
            TfrmGraphs.GraphSwitch...┤     │ │   │ │ │   │ │ │   
     TfrmGraphs.cboDateRangeChange...┤     │ │   │ │ │   │ │ │   
         TfrmGraphs.ViewSelections...┘     │ │   │ │ │   │ │ │   
            TfrmGraphs.lvwItemsBottomChange┘ │   │ │ │   │ │ │   
                  TfrmGraphs.lvwItemsTopClick┘   │ │ │   │ │ │   
                   TfrmGraphs.Initialize...┤     │ │ │   │ │ │   
                        TfrmGraphs.FormShow┤     │ │ │   │ │ │   
            TfrmGraphs.chkDualViewsClick...┤     │ │ │   │ │ │   
                  TfrmGraphs.GraphSwitch...┤     │ │ │   │ │ │   
                   TfrmGraphs.SplitClick...┤     │ │ │   │ │ │   
           TfrmGraphs.mnuPopGraphClearClick┤     │ │ │   │ │ │   
                   TfrmGraphs.AutoSelect...┤     │ │ │   │ │ │   
           TfrmGraphs.mnuPopGraphResetClick┤     │ │ │   │ │ │   
                      TfrmGraphs.FormShow┤ │     │ │ │   │ │ │   
    TfrmGraphs.mnuPopGraphHorizontalClick┤ │     │ │ │   │ │ │   
      TfrmGraphs.mnuPopGraphVerticalClick┤ │     │ │ │   │ │ │   
        TfrmGraphs.mnuPopGraphRemoveClick┤ │     │ │ │   │ │ │   
      TfrmGraphs.mnuPopGraphZoomBackClick┘ │     │ │ │   │ │ │   
               TfrmGraphs.lvwItemsTopChange┘     │ │ │   │ │ │   
                        TfrmGraphs.ViewsChange...┤ │ │   │ │ │   
             TfrmGraphs.mnuPopGraphMergeLabsClick┘ │ │   │ │ │   
                           TfrmGraphs.ItemsClick...┤ │   │ │ │   
                          TfrmGraphs.ViewsChange...┤ │   │ │ │   
                  TfrmGraphs.mnuPopGraphRemoveClick┘ │   │ │ │   
                         TfrmGraphs.MakeTogetherMaybe┘   │ │ │   
                          TfrmGraphs.DisplayData...┘     │ │ │   
                                  TfrmGraphs.MakeTogether┘ │ │   
                        TfrmGraphs.MakeTogetherMaybe...┘   │ │   
                                      TfrmGraphs.BaseResize┤ │   
                        TfrmGraphs.pnlScrollTopBaseResize┘ │ │   
                          TfrmGraphs.pnlScrollTopBaseResize┘ │   
                                   TfrmGraphs.ChartOnUndoZoom┤   
                                    TfrmGraphs.MakeChart...┤ │   
                                 TfrmGraphs.MakeNonNumerics┘ │   
                               TfrmGraphs.MakeOtherSeries┘   │   
                        TfrmGraphs.MakeSeparateItems...┤     │   
                             TfrmGraphs.MakeTogether...┘     │   
                                            TfrmGraphs.ZoomTo┘   
                                      TfrmGraphs.ZoomUpdate┘     
                                 TfrmGraphs.ItemsClick...┤       
                      TfrmGraphs.mnuPopGraphZoomBackClick┘       

Called-By

Name Declaration Comments
TfrmGraphs.SizeDates procedure SizeDates(aChart: TChart; aSmallTime, aBigTime: TDateTime); -


Source

1971  procedure TfrmGraphs.SeriesForLabels(aChart: TChart; aID: string; pad: double);
1972  var
1973    i: integer;
1974    aPointSeries: TPointSeries;
1975    max, min: double;
1976  begin
1977    for i := 0 to aChart.SeriesCount - 1 do
1978    begin
1979      if aChart.Series[i].Identifier = aID then
1980      begin
1981        aPointSeries := (aChart.Series[i] as TPointSeries);
1982        aPointSeries.Clear;
1983        if aID = 'serNonNumBottom' then
1984        begin
1985          min := aChart.LeftAxis.Minimum;
1986          if min > aChart.MinYValue(aChart.LeftAxis) then
1987             min := aChart.MinYValue(aChart.LeftAxis);
1988          if min < 0 then min := 0;
1989          aPointSeries.AddXY(aChart.BottomAxis.Minimum, min, '', clTeeColor) ;
1990        end
1991        else if aID  = 'serNonNumTop' then
1992        begin
1993          max := aChart.LeftAxis.Maximum;
1994          if max < aChart.MaxYValue(aChart.LeftAxis) then
1995             max := aChart.MaxYValue(aChart.LeftAxis);
1996          aPointSeries.AddXY(aChart.BottomAxis.Minimum, max, '', clTeeColor) ;
1997        end
1998        else if aID = 'serComments' then
1999        begin
2000          min := aChart.MinYValue(aChart.LeftAxis);
2001          if aChart.SeriesCount = 2 then        // only 1 series (besides comment)
2002            if aChart.Series[0].Count = 1 then  // only 1 numeric
2003              min := min - 1;                   // force comment label to bottom
2004          if min < 0 then min := 0;
2005          aPointSeries.AddXY((aChart.BottomAxis.Maximum - pad), min, '', clTeeColor) ;
2006        end;
2007        aPointSeries.Marks.Visible := true;
2008        break;
2009      end;
2010    end;
2011  end;