用ProEssentials建立這些類型的圖形實際上須要多個子集來定義繪製圖形的不一樣方面。當構建一個這些類型的圖表時,首先確保設置一個合適Subsets屬性值。 code
將PlottingMethod設置爲SpecificPlotMode,而後對SpecificPlotMode進行適當的設置。 ci
例如,若是須要生成High-Low Bar(須要2子集)連同1條比較線用來顯示每一個條形圖的中間點。 class
Pego1.Subsets = 3 Pego1.Points = 4 Pego1.YData(0, 0) = 100: Pego1.YData(0, 1) = 150 Pego1.YData(0, 2) = 200: Pego1.YData(0, 3) = 250 Pego1.YData(1, 0) = 200: Pego1.YData(1, 1) = 250 Pego1.YData(1, 2) = 300: Pego1.YData(1, 3) = 350 Pego1.YData(2, 0) = 150: Pego1.YData(2, 1) = 200 Pego1.YData(2, 2) = 250: Pego1.YData(2, 3) = 300 Pego1.PlottingMethod = 15 ' 15 = Specific Plot Mode (for Graph) Pego1.SpecificPlotMode = 1 ' 1 = High-Low Bar Pego1.ComparisonSubsets = 1 ' One comparison subset Pego1.PlottingMethodII = 8 ' Comparison Subset as Points + Line Pego1.SubsetsToLegend(0) = -1 ' Get rid of subset legend area
上面代碼會生成結果以下圖: im