* color differences if the partial bar is semi-transparent.
*/
regularBar = getChart().add(PV.Bar).data(visualItemsJsArray)
.bottom(BAR_STROKE_WIDTH).height(regularBarLength)
.left(barStart).width(barWidth)
.fillStyle(new VisualItemColorSlotAccessor(BAR_COLOR))
.strokeStyle(new VisualItemColorSlotAccessor(BAR_BORDER_COLOR))
.lineWidth(BAR_STROKE_WIDTH);
if (valueLabelVisibility) {
regularBar.anchor(PVAlignment.TOP).add(PV.Label)
.textAngle(-Math.PI / 2).textBaseline(PVAlignment.MIDDLE)
.textAlign(valueLabelAlignment)
.textStyle(barValueLabelTextStyle).text(fullMarkLabelText);
}
/*
* Partial bars have a white bar below them to prevent the regular bar
* from affecting a semi-transparent partial bar.
*/
getChart().add(PV.Bar).data(visualItemsJsArray).bottom(BAR_STROKE_WIDTH)
.height(partialBarLength).left(partialBarStart)
.width(partialBarWidth).fillStyle(Colors.WHITE)
.strokeStyle(Colors.WHITE).lineWidth(BAR_STROKE_WIDTH)
.visible(showPartialBars);
partialBar = getChart()
.add(PV.Bar)
.data(visualItemsJsArray)
.bottom(BAR_STROKE_WIDTH)
.height(partialBarLength)
.left(partialBarStart)
.width(partialBarWidth)
.fillStyle(new VisualItemColorSlotAccessor(PARTIAL_BAR_COLOR))
.strokeStyle(
new VisualItemColorSlotAccessor(PARTIAL_BAR_BORDER_COLOR))
.lineWidth(BAR_STROKE_WIDTH).visible(showPartialBars);
if (valueLabelVisibility) {
partialBar.anchor(PVAlignment.TOP).add(PV.Label)
.textBaseline(PVAlignment.MIDDLE)