How can I make this graph?

Hi everyone, I’m new here and I’m wondering how I can create the graph below, since I have some LTE CPE that return different Device.MobileInfo.Modem.2-1.SINR for example.

signal:
label: “‘Distribuição de Sinais’”
slices:
excellent:
color: “‘#31a354’”
filter: Device.MobileInfo.Modem..SINR < 10
label: “‘Ruim’”
good:
color: “‘#a1d99b’”
filter: Device.MobileInfo.Modem.
.SINR = 20
label: “‘Bom’”
poor:
color: “‘#fdae61’”
filter: Device.MobileInfo.Modem.*.SINR > 30
label: “‘Excelente’”

This is my config, you will need to change some commands.
On config > edit chart >

potenciasONT:
  label: "'POTENCIAS'"
  slices:
    1_normal:
      color: '"#77dd77"'
      filter: InternetGatewayDevice.WANDevice.1.X_GponInterafceConfig.RXPower >= -26
        AND InternetGatewayDevice.WANDevice.1.X_GponInterafceConfig.RXPower <
        -15
      label: '"POTENCIA OK"'
    2_alta:
      color: '"#FF7F14"'
      filter: InternetGatewayDevice.WANDevice.1.X_GponInterafceConfig.RXPower < -12
        AND InternetGatewayDevice.WANDevice.1.X_GponInterafceConfig.RXPower >=
        -15
      label: "'POTENCIA ALTA'"
    3_baja:
      color: '"#FF7624"'
      filter: InternetGatewayDevice.WANDevice.1.X_GponInterafceConfig.RXPower	> -28
        AND InternetGatewayDevice.WANDevice.1.X_GponInterafceConfig.RXPower <
        -26
      label: "'POTENCIA BAJA'"
    3_fueraDeRango:
      color: '"#F72D0D"'
      filter: InternetGatewayDevice.WANDevice.1.X_GponInterafceConfig.RXPower <= -28
        OR InternetGatewayDevice.WANDevice.1.X_GponInterafceConfig.RXPower	>=
        -12
      label: "'FUERA DE RANGO'"

On config > edit overview >

online:
  label: "''"
  charts:
    - '"potenciasONT"'

Hi @Figaro , I’m a bit new , where would I be edit this , is this in the back end?
Also in the Filter can you add tags as well?

Example I have alot of phones , and I tag them to the site , can I use the Tag on the graph?

You can change the Charts layout by going to:
Admin > Config > Edit Charts

Yes. You can use Tags in your filter.

DR

Thanx Alot ! @dustin

Hi I think im missing something

VKLM:
label: “‘VKLM status’”
slices:
1_Normal:
color: “‘#44b3c2’”
label: “‘Online now’”
query: Tags.Victor0x20Khanye0x20LM > NOW() - 5 * 60 * 1000
2_OFFLINE:
color: “‘#c58744’”
count: Tags.Victor0x20Khanye0x20LM > NOW() - 5 * 60 * 1000 AND Events.Inform <
(NOW() - 5 * 60 * 1000)
label: “‘Offline’”

the idea is I want to have a chart pie counting the devices that are Tagged to show online and offline

Is there a way and where did I make my mistake

Your tag (Victor Khanye LM) is not numeric and cannot be evaluated to be greater than the time.

You may have to change the logic to use:
Tags.Victor0x20Khanye0x20LM IS NOT NULL AND Events.Inform > NOW() - 5 * 60 * 1000

This should only show devices tagged with Victor Khanye LM that are online now.
If it works, you can modify it to show offline, tagged devices.

DR

@dustin Thank you , with you assistance i got it right

Also if was on count: and not filter:

My next step will be to get from left to right.

Ok. Glad to hear.

If you can, share the code in case anyone else wants to make something similar.

DR

VKLM:
label: “‘VKLM status’”
slices:
1_Normal:
color: “‘#44b3c2’”
filter: Tags.Victor0x20Khanye0x20LM IS NOT NULL AND Events.Inform > NOW() - 5 *
60 * 1000
label: “‘Online now’”
2_OFFLINE:
color: “‘#c58744’”
filter: Tags.Victor0x20Khanye0x20LM IS NOT NULL AND Events.Inform < (NOW() - 5 *
60 * 1000) - (24 * 60 * 60 * 1000)
label: “‘Offline’”
label: “‘VKLM status’”
slices:
1_Normal:
color: “‘#44b3c2’”
filter: Tags.Victor0x20Khanye0x20LM IS NOT NULL AND Events.Inform > NOW() - 5 *
60 * 1000
label: “‘Online now’”
2_OFFLINE:
color: “‘#c58744’”
filter: Tags.Victor0x20Khanye0x20LM IS NOT NULL AND Events.Inform < (NOW() - 5 *
60 * 1000) - (24 * 60 * 60 * 1000)
label: “‘Offline’”

Please use a code block. Its three back ticks ` on a new line, followed by your code block. Then three backticks on a new line

```yaml

access:
  label: '"Access"'
  slices:
    1_ethernet:
      color: "'#44b3c2'"
      filter: VirtualParameters.WANAccessType = "Ethernet"
      label: "'Ethernet'"
    2_dsl:
      color: "'#c58744'"
      filter: VirtualParameters.WANAccessType = "DSL"
      label: '"DSL"'

```