Frames in EJ 1 Angular DigitalGauge

7 Jun 20171 minute to read

Inner and Outer Width Customization

Frames are space that enclose the Digital Gauge. The inner width of the Frame is the distance between the canvas element and the frame. The outer width is the distance from the frame. The code example to set frame’s innerWidth and outerWidth is as follow.

  • HTML
  • <ej-digitalgauge id="DigitalGauge1" value="WELCOME" [frame.innerWidth]=6 [frame.outerWidth]=10>

    Execute the above code examples to render the DigitalGauge as follows.


    Setting Background Image

    For a better appearance, you can set the backgroundimage for the Digital Gauge using the property backgroundImageUrl.

  • HTML
  • <ej-digitalgauge id="DigitalGauge1" value="RADAR" frame.backgroundImageUrl="board3.jpg" 
                                                      [items]="[{position: {x: 95,y: 10}}]">

    Execute the above code examples to render the Digital Gauge as follows.