# Virtual Parameter + Chart

**URL:** <https://forum.genieacs.com/t/virtual-parameter-chart/4231>\
**Category:** Uncategorized\
**Created:** [July 20, 2023, 4:30pm UTC](https://forum.genieacs.com/t/virtual-parameter-chart/4231 "2023-07-20T16:30:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Magnospeed](https://avatars.discourse-cdn.com/v4/letter/m/7cd45c/32.png) [@Magnospeed](https://forum.genieacs.com/u/Magnospeed)\
**Post date:** [July 20, 2023, 4:30pm UTC](https://forum.genieacs.com/t/virtual-parameter-chart/4231/1 "2023-07-20T16:30:25Z")

</div>

Hello everyone, I would like to generate a graph that shows me the levels of signals generated by the virtual parameter, the virtual parameter is working normally on devices page, and I am using this code, but without success. Would anyone be able to help me?

```auto
Sinal Óptico:
  label: '"Sinal Óptico"'
  slices:
    1_Normal:
      color: "'#00bd7c'"
      filter: VirtualParameters.PonRXPower = "-21"
      label: "'Normal'"
    2_Atenção:
      color: '"#c8d422"'
      filter: VirtualParameters.PonRXPower = "-24"
      label: "'Atenção'"
    3_Critico:
      color: '"#ff7a75"'
      filter: VirtualParameters.PonRXPower = "-30"
      label: "'Critico'"
```

---

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [July 20, 2023, 5:05pm UTC](https://forum.genieacs.com/t/virtual-parameter-chart/4231/2 "2023-07-20T17:05:48Z")

</div>

What does your vparam look like? Is it exposing the value as a string or an int? If its being exposed as an int, then you probably want something that looks like this:

```auto
Sinal Óptico:
  label: '"Sinal Óptico"'
  slices:
    1_Normal:
      color: "'#00bd7c'"
      filter: VirtualParameters.PonRXPower >= -21
      label: "'Normal'"
    2_Atenção:
      color: '"#c8d422"'
      filter: VirtualParameters.PonRXPower <= -24 And VirtualParameters.PonRXPower > -30
      label: "'Atenção'"
    3_Critico:
      color: '"#ff7a75"'
      filter: VirtualParameters.PonRXPower <= -30
      label: "'Critico'"

```

---

<div class="post-metadata">

**Author:** ![Magnospeed](https://avatars.discourse-cdn.com/v4/letter/m/7cd45c/32.png) [@Magnospeed](https://forum.genieacs.com/u/Magnospeed)\
**Post date:** [July 20, 2023, 5:21pm UTC](https://forum.genieacs.com/t/virtual-parameter-chart/4231/3 "2023-07-20T17:21:08Z")

</div>

@akcoder

Thanks a lot for the help, It worked with your syntax as I wanted.

You are Sensational!
