Chart Background

Overview

In AnyGantt you can not only adjust you Gantt Chart's functionality but also tune up its visual appearance. It's most major part is background. In AnyGantt there are quite a few elements that you can set background for: general chart background, background for timeline scale, plot background, and background for datagrid. Also remember that for some elements you can set not only background but also line/border color.

Background usage sample

Let's create a sample that will demonstrate coloring different elements' background. First of all, you can set color for the general background:

<settings>
  
<background>
    
<fill color="" />
  
</background>
</settings>

The next two elements are placed inside timeline node. This is color for scale and color for the plot:

<timeline>
  
<scale>
    
<background>
      
<fill color="" />
    
</background>
  
</scale>
  
<plot>
    
<background>
      
<fill color="" />
      
<border enabled="true" color="" type="Solid" />
    
</background>
  
</plot>
</timeline>

And then it goes datagrid:

<datagrid>
  
<style>
    
<line color="" />
    
<background>
      
<fill type="Solid" color="" />
    
</background>
  
</style>
</datagrid>

Gantt background sample 1 - Click to see Live Chart Preview
Gantt background sample 1 - Click to see Live Chart Preview

to top