# How to display specific values on a time graph

**URL:** <https://discuss.elastic.co/t/how-to-display-specific-values-on-a-time-graph/376941>\
**Category:** Kibana\
**Tags:** vega, visualisation\
**Created:** [April 9, 2025, 7:21am UTC](https://discuss.elastic.co/t/how-to-display-specific-values-on-a-time-graph/376941 "2025-04-09T07:21:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jice](https://avatars.discourse-cdn.com/v4/letter/j/c77e96/32.png) [@Jice](https://discuss.elastic.co/u/Jice)\
**Post date:** [April 9, 2025, 7:21am UTC](https://discuss.elastic.co/t/how-to-display-specific-values-on-a-time-graph/376941/1 "2025-04-09T07:21:28Z")

</div>

Hi,  
I have a dataview about actions done by users (coming from indexes built from logs).  
Each row has columns for user, his profile (role) and a timestamp for the time he performs the action.  
The idea is to have a graph showing, for one filtered user, the profiles he uses over time (short period...).

I thought of a graph displaying time on X axis and profiles on Y axis, each record in the dataview would be represented by a point depending on the time and the profile used.

But i can't figure how i can represent this (or another way to do do the same thing)  
In aggregations or lens, i can't see point cloud, in timeseries, i can see only counts (I want to see a point for each record on short periods of time and not a count by hours for example)  
I also tried vega but even my simplest graph trying to draw points at the intersection of an x qualitative value and an y qualitative value fails (i'm very new to this)

Any idea ? Is it simply possible ?

(i put here the very simple code that fail (i have only one point at the center of the graph. I cant see the values from DATA1 and DATA2 along the axis... And there is no time yet. When I try with a date on X axis, i have a [Infinite extent for field "DATE": [Infinity, -Infinity]] error.

```auto
{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
  "data": {
    "url": {
      "%context%": true,
      "index": "logs-dataview", 
      "body": {
        "size": 1000,
        "_source": ["DATA1", "DATA2"]
      }
    }
  },
  "mark": "point", 
    "encoding": {
      "x": {
        "field": "DATA1", 
        "type": "nominal"
      },
      "y": {
        "field": "DATA2", 
        "type": "nominal"
      }
  }
}

```

---

<div class="post-metadata">

**Author:** ![Jice](https://avatars.discourse-cdn.com/v4/letter/j/c77e96/32.png) [@Jice](https://discuss.elastic.co/u/Jice)\
**Post date:** [April 9, 2025, 9:10am UTC](https://discuss.elastic.co/t/how-to-display-specific-values-on-a-time-graph/376941/2 "2025-04-09T09:10:19Z")

</div>

Pour finir, j'ai trouvé le problème de mon code. Il fallait simplement mettre "\_source.DATA1" et "\_source.DATA2" dans l'encoding. Du coup, le code fonctionne et du coup, je pense que je vais finir par y arriver....
