Hi
Does CUBA support bullets in GanttChart like here?
I want to use the bullets to represent the achievement value whereas the Gantt bar will represent plan on the time line.
Hi
Does CUBA support bullets in GanttChart like here?
I want to use the bullets to represent the achievement value whereas the Gantt bar will represent plan on the time line.
Hi, @mortozakhan!
Yes, you should do the following configuration for graph
:
<chart:graph fillAlphas="1"
bulletColor="RED"
bullet="DIAMOND"
bulletSize="12"/>
If you want different bulletSize
, use bulletSizeField
and define property in your data.
It is a property in your Datasource
or DataProvider
. See the example below:
...
<chart:graph fillAlphas="1"
bulletField="bullet"
bulletColor="RED"
bulletSizeField="bulletSizeField"/>
...
<chart:data>
<chart:item>
<chart:property name="category" value="John"/>
<chart:property name="segments">
<chart:item>
...
<chart:property name="bullet" value="diamond"/>
<chart:property name="bulletSizeField" value="12"/>
...
</chart:item>
</chart:property>
</chart:item>
<chart:item>
<chart:property name="category" value="Smith"/>
<chart:property name="segments">
<chart:item>
...
<chart:property name="bullet" value="diamond"/>
<chart:property name="bulletSizeField" value="15"/>
...
</chart:item>
</chart:property>
</chart:item>
</chart:data>