Bullet Graph Dimensions

This section explains you on how to change the dimensions of the Bullet Graph. You can change various dimensions and properties of Bullet Graph like width, height, quantitative scale length, qualitative range size etc. By default, Bullet Graph uses 595 pixel width and 90 pixel height. You can customize width and height of a Bullet Graph using Width and Height properties of Bullet Graph respectively.

Size

  • html
  • <ej:BulletGraph ID="BulletGraph1" runat="server" Height="100px" RangDataSource="" Width="500px">
    
    
    
            </ej:BulletGraph>

    In the above code example, width is set as 500 pixel and height is set as 100 pixel. The output of the above code example with dimension 500 * 100 is as follows.

    Value for performance bar

    The feature measure bar value is customized using the Value property. Default value of this property is 0.

  • html
  • <ej:BulletGraph ID="BulletGraph1" Value="5" Width="500px" Height="500px" runat="server">
    
    
    
            </ej:BulletGraph>

    The following screenshot displays Bullet Graph with a performance measure value of 5

    Comparative measure value

    The Comparative measure value is set using ComparativeMeasureValue property. The default value of this property is 0.

  • html
  • <ej:BulletGraph ID="BulletGraph1" ComparativeMeasureValue="5" Width="500px" Height="500px" runat="server">
    
    
    
            </ej:BulletGraph>

    The following screenshot displays Bullet Graph with comparative measure value of 5

    Theme

    Bullet Graph Theme is customized using Theme property. Default value is flatlight. Bullet Graph supports flatlight and flatdark themes. Flatdark theme improves Bullet Graph appearance when background of Bullet Graph container uses dark color like black.

  • html
  • <ej:BulletGraph ID="BulletGraph1" Theme="flatdark" Width="500px" Height="500px" runat="server">
    
    
    
            </ej:BulletGraph>

    The following screenshot displays Bullet Graph with flatdark theme

    Bullet Graph with theme

    Orientation

    Bullet Graph is oriented either horizontally or vertically using Orientation property. Default value of this property is horizontal.

  • html
  • <ej:BulletGraph ID="BulletGraph1" Orientation="Vertical" Width="100px" Height="550px" FlowDirection="Backward" runat="server">
    
    
    
            </ej:BulletGraph>

    Flow direction

    The Flow direction of Bullet Graph is customized using FlowDirection property. Default value of this property is Forward. Setting Forward renders Bullet Graph left to right and Backward renders from right to left.

  • html
  • <ej:BulletGraph ID="BulletGraph1" FlowDirection="Backward" ComparativeMeasureValue="2" Width="500px" Height="500px" runat="server">
    
    
    
            </ej:BulletGraph>

    The following screenshot displays Bullet Graph in a backward direction.

    Qualitative range size

    Size of the qualitative range is customized using QualitativeRangeSize property. Default value of this property is 32.

  • html
  • <ej:BulletGraph ID="BulletGraph1" QualitativeRangeSize="50" runat="server">
    
    
    
            </ej:BulletGraph>

    The following screenshot displays Bullet Graph with Qualitative range of size 50

    Quantitative scale length

    Length of the quantitative scale is customized using QuantitativeScaleLength property. Default value of this property is 475.

  • html
  • <ej:BulletGraph ID="BulletGraph1" QuantitativeScaleLength="500" runat="server">
    
    
    
    </ej:BulletGraph>

    The following screenshot displays Bullet Graph with Quantitative scale length of 500