> Am 12.04.2015 um 17:18 schrieb James Sentman <[email protected]>: > > Good morning! > > I see the CDAreaLayerMBS class for doing graphs that are filled below the > line, and I see the CDStepLineLayerMBS for doing graphs that step from one > value to another, which is what I want. But I can't see a stepped area layer > that would do the same fill in for a stepped line layer. I can almost wrap my > head around adding a line fill below the steplinelayer, but I can't make it > happen in an actual graph.
Yes. There are two methods: (a) With the "InterLineLayer", you can vertically fill (horizontally fill if swapXY is in effect) between any two lines from any other following sources: - LineLayer, StepLineLayer and SplineLayer and Mark lines. For example like: 'A step line layer Set myLayer as CDStepLineLayerMBS = c.addStepLineLayer(..................) 'Fill betwen a step line layer and a mark line at "negative infinitely" (which means just fill to the bottom of the plot area) Call c.addInterLineLayer(myLayer.getLine(), c.yAxis().addMark(-9999, cd.kTransparent).getLine(), &H7fff0000) (b) You can create an area layer using data the contains steps. For example: xCoor = Array(0, 3, 3, 5, 5, 7) yCoor = Array(10, 10, 20, 20, 30, 30) Set myLayer as CDAreaLayerMBS = c.addAreaLayer(yCoor) Call myLayer.setXData(xCoor) Sincerely Christian -- Read our blog about news on our plugins: http://www.mbsplugins.de/ _______________________________________________ Mbsplugins_monkeybreadsoftware.info mailing list [email protected] https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
