Procedure

TfrmGraphs.MakeSeparateItems

Module

fGraphs

Last Modified

7/15/2014 3:26:36 PM

Visibility

Private

Owner

TfrmGraphs

Declaration

procedure MakeSeparateItems(aScrollBox: TScrollBox; aListView: TListView; section: string);

Calls Hierarchy


TfrmGraphs.MakeSeparateItems
 ├TfrmGraphs.GraphTypeNum
 ├TfrmGraphs.TitleInfo
 │ └TfrmGraphs.RefUnits
 │   └TfrmGraphs.SelectRef
 │     └CheckRef
 ├TfrmGraphs.MakeChart
 │ ├TfrmGraphs.HideDates
 │ ├TfrmGraphs.ChartOnZoom
 │ │ ├TfrmGraphs.SizeDates
 │ │ │ ├TfrmGraphs.GraphFooter
 │ │ │ └TfrmGraphs.SeriesForLabels
 │ │ └TfrmGraphs.ZoomUpdateInfo
 │ │   ├TfrmGraphs.InfoMessage
 │ │   └TfrmGraphs.MergedLabsSelected
 │ ├TfrmGraphs.ChartOnUndoZoom
 │ │ ├TfrmGraphs.SizeDates...
 │ │ ├TfrmGraphs.InfoMessage
 │ │ └TfrmGraphs.MergedLabsSelected
 │ ├TfrmGraphs.chartBaseClickSeries
 │ │ ├TfrmGraphs.InactivateHint
 │ │ └TfrmGraphs.SeriesClicks
 │ │   ├TfrmGraphs.ValueText
 │ │   │ ├TfrmGraphs.NonNumText
 │ │   │ │ ├TfrmGraphs.FileNameX
 │ │   │ │ ├TfrmGraphs.ItemName
 │ │   │ │ └TfrmGraphs.SetRefNonNum
 │ │   │ │   └TfrmGraphs.RefUnits...
 │ │   │ ├TfrmGraphs.ItemCheck
 │ │   │ ├TfrmGraphs.CheckMedNum
 │ │   │ ├TfrmGraphs.FileNameX
 │ │   │ ├TfrmGraphs.ValueDates
 │ │   │ ├TfrmGraphs.ResultValue
 │ │   │ │ ├TfrmGraphs.serDatelineTopGetMarkText
 │ │   │ │ └TfrmGraphs.BPValue
 │ │   │ └TfrmGraphs.OtherInfo
 │ │   │   └TfrmGraphs.SetRef
 │ │   │     └TfrmGraphs.RefUnits...
 │ │   ├TfrmGraphs.LabNameResults
 │ │   └TfrmGraphs.AllTypeDate
 │ │     ├TfrmGraphs.CheckToAddData
 │ │     │ ├TfrmGraphs.LabData
 │ │     │ │ ├rpcGetItemData
 │ │     │ │ │ └onoff
 │ │     │ │ ├TfrmGraphs.SpecRefCheck
 │ │     │ │ │ └TfrmGraphs.RefUnits...
 │ │     │ │ ├TfrmGraphs.SpecRefSet
 │ │     │ │ │ └MultiRef
 │ │     │ │ ├TfrmGraphs.FileNameX
 │ │     │ │ ├TfrmGraphs.LabCheck
 │ │     │ │ ├TfrmGraphs.DateRangeMultiItems
 │ │     │ │ └TfrmGraphs.LabAdd
 │ │     │ └rpcGetItemData...
 │ │     ├TfrmGraphs.TempData
 │ │     │ ├TfrmGraphs.ItemName
 │ │     │ └TfrmGraphs.SetRef...
 │ │     └ReportBox
 │ │       └CreateReportBox
 │ │         └TfrmBase508Form.Create
 │ │           ├TfrmBase508Form.UpdateAccessibilityActions
 │ │           ├UnfocusableControlEnter
 │ │           └AdjustControls
 │ │             ├TfrmBase508Form.ModifyUnfocusableControl
 │ │             └..(rec)..
 │ ├TfrmGraphs.chartBaseClickLegend
 │ │ └TfrmGraphs.ItemDateRange
 │ │   ├TfrmGraphs.ValueText...
 │ │   └ReportBox...
 │ ├TfrmGraphs.mnuPopGraphDetailsClick
 │ │ ├TfrmGraphs.ItemCheck
 │ │ ├TfrmGraphs.HSAbbrev
 │ │ ├TfrmGraphs.ValueText...
 │ │ ├TfrmGraphs.LabNameResults
 │ │ ├TfrmGraphs.AllTypeDate...
 │ │ ├TfrmGraphs.OneDayTypeDetails
 │ │ │ ├TfrmGraphs.FileNameX
 │ │ │ ├TfrmGraphs.ItemName
 │ │ │ ├rpcDetailDay
 │ │ │ │ └onoff
 │ │ │ ├TfrmGraphs.NotifyApps
 │ │ │ └ReportBox...
 │ │ └TfrmGraphs.AllDetails
 │ │   ├TfrmGraphs.HSAbbrev
 │ │   ├rpcDetailSelected
 │ │   │ └onoff
 │ │   ├TfrmGraphs.NotifyApps
 │ │   ├ReportBox...
 │ │   └TfrmGraphs.ItemDateRange...
 │ ├TfrmGraphs.chartBaseMouseDown
 │ │ ├TfrmGraphs.InactivateHint
 │ │ └TfrmGraphs.MouseClicks
 │ │   └TfrmGraphs.LabelClicks
 │ │     ├TfrmGraphs.mnuPopGraphDetailsClick...
 │ │     ├TfrmGraphs.ValueText...
 │ │     ├TfrmGraphs.LabNameResults
 │ │     └TfrmGraphs.AllTypeDate...
 │ ├TfrmGraphs.chartBaseMouseUp
 │ └TfrmGraphs.chartBaseMouseMove
 │   └TfrmGraphs.InactivateHint
 ├TfrmGraphs.PadLeftEvent
 ├TfrmGraphs.MakeLineSeries
 │ ├TfrmGraphs.MakeSeriesInfo
 │ │ ├TfrmGraphs.GetData
 │ │ │ └TfrmGraphs.FMCorrectedDate
 │ │ └TfrmGraphs.NextColor
 │ ├TfrmGraphs.NextPointerStyle
 │ ├TfrmGraphs.BPCheck
 │ │ └TfrmGraphs.MakeSeriesBP
 │ ├TfrmGraphs.FMCorrectedDate
 │ ├TfrmGraphs.HighLow
 │ │ └TfrmGraphs.FMToDateTime
 │ ├TfrmGraphs.BPAdd
 │ │ └TfrmGraphs.BorderValue
 │ ├TfrmGraphs.NumAdd
 │ │ ├TfrmGraphs.StdDev
 │ │ ├TfrmGraphs.BorderValue
 │ │ └TfrmGraphs.InvVal
 │ ├TfrmGraphs.NonNumSave
 │ ├TfrmGraphs.MakeSeriesRef
 │ │ └TfrmGraphs.BorderValue
 │ ├TfrmGraphs.MakeSeriesPoint
 │ ├TfrmGraphs.PainAdd
 │ └TfrmGraphs.FixedDates
 ├TfrmGraphs.MakeBarSeries
 │ ├TfrmGraphs.MakeSeriesPoint
 │ ├TfrmGraphs.MakeSeriesInfo...
 │ ├TfrmGraphs.NextPointerStyle
 │ ├TfrmGraphs.FMCorrectedDate
 │ ├TfrmGraphs.HighLow...
 │ ├TfrmGraphs.InfoMessage
 │ ├TfrmGraphs.MergedLabsSelected
 │ └TfrmGraphs.FixedDates
 ├TfrmGraphs.MakeVisitGanttSeries
 │ ├TfrmGraphs.MakeSeriesPoint
 │ ├TfrmGraphs.MakeSeriesInfo...
 │ ├TfrmGraphs.FMCorrectedDate
 │ ├TfrmGraphs.HighLow...
 │ └TfrmGraphs.FixedDates
 ├TfrmGraphs.MakePointSeries
 │ ├TfrmGraphs.MakeSeriesInfo...
 │ ├TfrmGraphs.NextPointerStyle
 │ ├TfrmGraphs.FMCorrectedDate
 │ ├TfrmGraphs.HighLow...
 │ └TfrmGraphs.TempCheck
 ├TfrmGraphs.MakeGanttSeries
 │ ├TfrmGraphs.MakeSeriesPoint
 │ ├TfrmGraphs.MakeSeriesInfo...
 │ ├TfrmGraphs.FMCorrectedDate
 │ ├TfrmGraphs.HighLow...
 │ └TfrmGraphs.FixedDates
 └TfrmGraphs.MakeOtherSeries
   ├TfrmGraphs.MakeNonNumerics
   │ ├TfrmGraphs.PadNonNum
   │ │ ├TfrmGraphs.StackNonNum
   │ │ └TfrmGraphs.MakeSeriesPoint
   │ ├TfrmGraphs.MakeSeriesPoint
   │ ├TfrmGraphs.PadLeftNonNumeric
   │ ├TfrmGraphs.ChartOnUndoZoom...
   │ └TfrmGraphs.MakeNonNumSeries
   │   └TfrmGraphs.MakeSeriesPoint
   ├TfrmGraphs.DisplayFreeText
   └TfrmGraphs.MakeComments
     └TfrmGraphs.MakeSeriesPoint

Called-By Hierarchy


                             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...┘     

Calls

Name Declaration Comments
TfrmGraphs.GraphTypeNum function GraphTypeNum(aType: string): integer; -
TfrmGraphs.MakeBarSeries procedure MakeBarSeries(aChart: TChart; aTitle, aFileType: string; var aSerCnt: integer); -
TfrmGraphs.MakeChart procedure MakeChart(aChart: TChart; aScrollBox: TScrollBox); -
TfrmGraphs.MakeGanttSeries procedure MakeGanttSeries(aChart: TChart; aTitle, aFileType: string; var aSerCnt: integer); -
TfrmGraphs.MakeLineSeries procedure MakeLineSeries(aChart: TChart; aTitle, aFileType, section: string; var aSerCnt, aNonCnt: integer; multiline: boolean); -
TfrmGraphs.MakeOtherSeries procedure MakeOtherSeries(aChart: TChart); -
TfrmGraphs.MakePointSeries procedure MakePointSeries(aChart: TChart; aTitle, aFileType: string; var aSerCnt: integer); -
TfrmGraphs.MakeVisitGanttSeries procedure MakeVisitGanttSeries(aChart: TChart; aTitle, aFileType: string; var aSerCnt: integer); -
TfrmGraphs.PadLeftEvent function PadLeftEvent(aWidth: integer): integer; -
TfrmGraphs.TitleInfo function TitleInfo(filetype, typeitem, caption: string): string; -

Called-By

Name Declaration Comments
TfrmGraphs.MakeSeparate procedure MakeSeparate(aScrollBox: TScrollBox; aListView: TListView; aPadPanel: TPanel; section: string); -


Source

2129  procedure TfrmGraphs.MakeSeparateItems(aScrollBox: TScrollBox; aListView: TListView; section: string);
2130  var
2131    bcnt, gcnt, graphtype, lcnt, ncnt, pcnt, vcnt: integer;
2132    aTitle, filetype, typeitem: string;
2133    newchart: TChart;
2134    aGraphItem: TGraphItem;
2135    aListItem: TListItem;
2136  begin
2137    pcnt := 0; gcnt := 0; vcnt := 0; lcnt := 0; ncnt := 0; bcnt := 0;
2138    aListItem := aListView.Selected;
2139    while aListItem <> nil do
2140    begin
2141      aGraphItem := TGraphItem(aListItem.SubItems.Objects[3]);
2142      filetype := UpperCase(Piece(aGraphItem.Values, '^', 1));
2143      typeitem := UpperCase(Piece(aGraphItem.Values, '^', 2));
2144      graphtype := GraphTypeNum(filetype); //*****strtointdef(Piece(aListBox.Items[j], '^', 2), 1);
2145      aTitle := TitleInfo(filetype, typeitem, aListItem.Caption);
2146      newchart := TChart.Create(self);
2147      newchart.Tag := GtslNonNum.Count;
2148      MakeChart(newchart, aScrollBox);
2149      with newchart do
2150      begin
2151        Height := 170;
2152        Align := alBottom;
2153        Align := alTop;
2154        Tag := aListItem.Index;
2155        //SetPiece(aTitle, '^', 3, 'zzzz: ' + Piece(aTitle, '^', 3)); // test prefix
2156        if (graphtype = 1) and (btnChangeSettings.Tag = 1) then
2157          LeftAxis.Title.Caption := 'StdDev'
2158        else if (graphtype = 1) and (btnChangeSettings.Tag = 2) then
2159        begin
2160          LeftAxis.Title.Caption := '1/' + Piece(aTitle, '^', 7);
2161          SetPiece(aTitle, '^', 3, 'Inverse ' + Piece(aTitle, '^', 3));
2162        end
2163        else
2164          LeftAxis.Title.Caption := Piece(aTitle, '^', 7);
2165        if graphtype <> 1 then
2166        begin
2167          LeftAxis.Visible := false;
2168          MarginLeft := PadLeftEvent(pnlScrollTopBase.Width);
2169          //MarginLeft := round((65 / (pnlScrollTopBase.Width + 1)) * 100);       // ************* marginleft is a %
2170        end;
2171      end;
2172      splGraphs.Tag := 1;    // show ref ranges
2173      if graphtype = 4 then graphtype := 2;         // change points to be bars
2174      case graphtype of
2175        1:  MakeLineSeries(newchart, aTitle, filetype, section, lcnt, ncnt, false);
2176        2:  MakeBarSeries(newchart, aTitle, filetype, bcnt);
2177        3:  MakeVisitGanttSeries(newchart, aTitle, filetype, vcnt);
2178        4:  MakePointSeries(newchart, aTitle, filetype, pcnt);
2179        8:  MakeGanttSeries(newchart, aTitle, filetype, gcnt);
2180      end;
2181      MakeOtherSeries(newchart);
2182      aListItem := aListView.GetNextItem(aListItem, sdAll, [isSelected]);
2183    end;
2184    if (FGraphSetting.HighTime = FGraphSetting.LowTime)
2185    or (lcnt = 1) or (pcnt = 1) or (bcnt = 1) or (vcnt = 1) then
2186    begin
2187      FGraphSetting.HighTime := FGraphSetting.HighTime + 1;
2188      FGraphSetting.LowTime := FGraphSetting.LowTime - 1;
2189    end;
2190  end;