ngx-gauge icon indicating copy to clipboard operation
ngx-gauge copied to clipboard

Blurred

Open Bao2080 opened this issue 1 year ago • 3 comments

Screenshot 2024-10-15 at 4 17 38 PM

Angular 18, Standalone. html code:

<foreignObject x="241.73" y="430.1" width="100" height="100" >
  <div class="ngx-ahu-g4pf">
    <ngx-gauge
      style="background-color: white;"
      [value]="numberGauge" 
      [size]="80" 
      [label]="''"
      [append]="'Pa'" 
      [margin]="0"
      [min]="0" 
      [max]="100" 
      [thick]="5" 
      [type]="'arch'"
      [thresholds]="thresholds">
    </ngx-gauge>
  </div>
</foreignObject>

I have tried resizing. But the lines are still blurry whether they are inside the SVG or not. How can I solve this situation?

Bao2080 avatar Oct 15 '24 08:10 Bao2080

Hi, have you tried running it on another browser ? Which one did you use ?

clementolive avatar Dec 28 '24 13:12 clementolive

Hi, have you tried running it on another browser ? Which one did you use ?

yes, i tried on Google Chrome, Microsoft Edge, Android Phone(Samsung' and Huawei' mobile phone browser). The same problem will occur.

Bao2080 avatar Jan 02 '25 02:01 Bao2080

@Bao2080 You need to play with the size option. your size is set to 80, but it looks like the gauge is zoomed in. if you increase the size, that basically increases the resolution. you will also have to increase the thick as that is based off size to get the dimension that your looking for.

DrakeAnglin avatar Jan 02 '25 20:01 DrakeAnglin