Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

5.3 KB
Raw Blame
{
    "id": 999,
    "short_id": "singlePt",
    "name": "Single Day Trend",
    "derived_name": "Pageview count - Single Day",
    "filters": {},
    "filters_hash": "cache_single_data_point",
    "order": null,
    "deleted": false,
    "dashboard": null,
    "layouts": {},
    "color": null,
    "last_refresh": null,
    "refreshing": false,
    "result": [
        {
            "action": {
                "id": "$pageview",
                "type": "events",
                "order": 0,
                "name": "$pageview",
                "custom_name": null,
                "math": null,
                "math_property": null,
                "math_group_type_index": null,
                "properties": {}
            },
            "label": "$pageview",
            "count": 1542,
            "data": [1542],
            "labels": ["20-Jan-2026"],
            "days": ["2026-01-20"],
            "persons_urls": [
                {
                    "filter": {
                        "entity_id": "$pageview",
                        "entity_type": "events",
                        "entity_math": null,
                        "date_from": "2026-01-20",
                        "date_to": "2026-01-20"
                    },
                    "url": "api/projects/1/persons/trends/?date_from=2026-01-20&date_to=2026-01-20&display=ActionsLineGraph&events=%5B%7B%22id%22%3A+%22%24pageview%22%7D%5D&insight=TRENDS&interval=day&entity_id=%24pageview&entity_type=events"
                }
            ],
            "filter": {
                "display": "ActionsLineGraph",
                "events": [
                    {
                        "id": "$pageview",
                        "type": "events",
                        "order": 0,
                        "name": "$pageview",
                        "custom_name": null,
                        "math": null,
                        "math_property": null,
                        "math_group_type_index": null,
                        "properties": {}
                    }
                ],
                "insight": "TRENDS",
                "interval": "day"
            }
        },
        {
            "action": {
                "id": "signup",
                "type": "events",
                "order": 1,
                "name": "signup",
                "custom_name": null,
                "math": null,
                "math_property": null,
                "math_group_type_index": null,
                "properties": {}
            },
            "label": "signup",
            "count": 0,
            "data": [0],
            "labels": ["20-Jan-2026"],
            "days": ["2026-01-20"],
            "persons_urls": [
                {
                    "filter": {
                        "entity_id": "signup",
                        "entity_type": "events",
                        "entity_math": null,
                        "date_from": "2026-01-20",
                        "date_to": "2026-01-20"
                    },
                    "url": "api/projects/1/persons/trends/?date_from=2026-01-20&date_to=2026-01-20&display=ActionsLineGraph&events=%5B%7B%22id%22%3A+%22signup%22%7D%5D&insight=TRENDS&interval=day&entity_id=signup&entity_type=events"
                }
            ],
            "filter": {
                "display": "ActionsLineGraph",
                "events": [
                    {
                        "id": "signup",
                        "type": "events",
                        "order": 1,
                        "name": "signup",
                        "custom_name": null,
                        "math": null,
                        "math_property": null,
                        "math_group_type_index": null,
                        "properties": {}
                    }
                ],
                "insight": "TRENDS",
                "interval": "day"
            }
        }
    ],
    "created_at": "2026-01-20T12:00:00.000000Z",
    "created_by": {
        "id": 1,
        "uuid": "017f7913-c1ee-0000-faff-0fe5ace3849a",
        "distinct_id": "test_user",
        "first_name": "Test",
        "email": "[email protected]"
    },
    "description": "Visual regression test for single data point visibility",
    "updated_at": "2026-01-20T12:00:00.000000Z",
    "tags": [],
    "favorited": false,
    "saved": true,
    "last_modified_at": "2026-01-20T12:00:00.000000Z",
    "last_modified_by": {
        "id": 1,
        "uuid": "017f7913-c1ee-0000-faff-0fe5ace3849a",
        "distinct_id": "test_user",
        "first_name": "Test",
        "email": "[email protected]"
    },
    "is_sample": false,
    "query": {
        "kind": "InsightVizNode",
        "source": {
            "dateRange": {
                "date_from": "-0d",
                "date_to": "-0d"
            },
            "interval": "day",
            "kind": "TrendsQuery",
            "series": [
                {
                    "event": "$pageview",
                    "kind": "EventsNode",
                    "math": "total",
                    "name": "$pageview"
                },
                {
                    "event": "signup",
                    "kind": "EventsNode",
                    "math": "total",
                    "name": "signup"
                }
            ],
            "trendsFilter": {
                "display": "ActionsLineGraph"
            }
        },
        "full": true
    }
}