Hello!
I want to use a serial chart with candlestick graph in my project. Is there any way to fill negative columns with red and positive columns with green? When I set fillAlphas attribute to 1 it just paints everything in green regardless of the negativeLineColor attribute value. Setting negativeFillAlphas to 1 doesn’t change anything.
Here’s the code of my screen descriptor:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<window xmlns="http://schemas.haulmont.com/cuba/screen/window.xsd"
caption="msg://caption"
messagesPack="com.company.riskwaterfall.web.screens.factor"
xmlns:chart="http://schemas.haulmont.com/charts/charts.xsd">
<data>
<collection id="factorsDc" class="com.company.riskwaterfall.entity.Factor">
<loader id="factorsDl">
<query>
<![CDATA[select e from riskwaterfall_Factor e order by e.number]]>
</query>
</loader>
</collection>
</data>
<layout height="100%" width="100%">
<chart:serialChart dataContainer="factorsDc" height="100%"
categoryField="name"
width="100%">
<chart:graphs>
<chart:graph type="CANDLESTICK"
openField="open"
lineColor="GREEN"
negativeLineColor="RED"
fillAlphas="1"
closeField="close"/>
</chart:graphs>
<chart:categoryAxis axisAlpha="0"
gridPosition="START"
tickLength="0"/>
</chart:serialChart>
</layout>
</window>