OH3 Echart Smooth Solution

Hi guys,

OH3.2.0
Persistence: Influxdb

I have the following situation:
I’m trying smooth echart like grafana but i can’t.

Grafana:
imagem

Echart:
imagem

component: f7-card
config:
  style:
    with: auto
    padding: 0px
    margin: 0px
slots:
  default:
    - component: oh-chart
      config:
        chartType: ""
        period: 2D
        label: =props.chart1
      slots:
        grid:
          - component: oh-chart-grid
            config:
              includeLabels: true
        xAxis:
          - component: oh-time-axis
            config:
              gridIndex: 0
              axisLabel:
                formatter: >-
                  {HH}:{mm}

                  {dd}\{MM}
              splitNumber: 3
              splitLine:
                show: true
                lineStyle:
                  color: rgb(51, 51, 51, 0.8)
        yAxis:
          - component: oh-value-axis
            config:
              scale: true
              gridIndex: 0
              axisLabel:
                formatter: "{value} ºC"
              nameTextStyle:
                color: Dodgerblue
                fontSize: 17
          - component: oh-value-axis
            config:
              scale: true
              gridIndex: 0
              splitLine:
                show: false
              axisLabel:
                formatter: "{value} %"
              nameTextStyle:
                color: yellow
                fontSize: 17
        series:
          - component: oh-time-series
            config:
              name: ='Temperatura\r' + items['METEO_Temp'].displayState
              gridIndex: 0
              xAxisIndex: 0
              yAxisIndex: 0
              type: line
              color: Orange
              item: METEO_Temp
              service: influxdb
              smooth: true
          - component: oh-time-series
            config:
              name: ='Humidade\r' + items['METEO_Hum'].displayState
              gridIndex: 0
              xAxisIndex: 0
              yAxisIndex: 1
              type: line
              color: Dodgerblue
              item: METEO_Hum
              service: influxdb
              smooth: true
        tooltip:
          - component: oh-chart-tooltip
            config:
              confine: true
              smartFormatter: true
        dataZoom:
          - component: oh-chart-datazoom
            config:
              type: inside
        legend:
          - component: oh-chart-legend
            config:
              show: true
              bottom: "10"
              type: scroll
              formatter: "{name}"

Someone have a solution?

Could you share your data points (with the Developer Tools > API Explorer, then persistence) or by opening the browser developer tools and try to find the /rest/persistence/items/YourItem call. The trick is to figure out what is returned by the API. For instance if you have a data point every minute regardless of the gap between two points in your InfluxDB, then you can’t smooth the chart with ECharts options because as far as it is concerned you have a data point every minute.

Yes, its true. I have data point every 15minutes. With graphana he have a function Group By time() we can change data information received time. With Echart i can’t find that function.
So i get your advice and i will change persistence strategy for longer time example 1hour.