> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ionworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Pipeline Element Plot Data

> Return decimated trace data for one validation plot, keyed by element.

Same behaviour as ``GET /datafits/{job_id}/plot_data`` and
``GET /validations/{job_id}/plot_data`` — the element resolves to its job —
so the UI needs no job id. See those routes for the decimation contract.



## OpenAPI

````yaml https://api.ionworks.com/openapi.json get /pipelines/elements/{element_id}/plot_data
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://api.ionworks.com
    description: Production
security: []
paths:
  /pipelines/elements/{element_id}/plot_data:
    get:
      tags:
        - Pipeline
      summary: Get Pipeline Element Plot Data
      description: >-
        Return decimated trace data for one validation plot, keyed by element.


        Same behaviour as ``GET /datafits/{job_id}/plot_data`` and

        ``GET /validations/{job_id}/plot_data`` — the element resolves to its
        job —

        so the UI needs no job id. See those routes for the decimation contract.
      operationId: >-
        get_pipeline_element_plot_data_pipelines_elements__element_id__plot_data_get
      parameters:
        - name: element_id
          in: path
          required: true
          schema:
            type: string
            title: Element Id
        - name: objective_name
          in: query
          required: true
          schema:
            type: string
            description: Objective name within validation_plot_config
            title: Objective Name
          description: Objective name within validation_plot_config
        - name: plot_index
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            description: Index into the plots list for this objective
            default: 0
            title: Plot Index
          description: Index into the plots list for this objective
        - name: max_points
          in: query
          required: false
          schema:
            type: integer
            maximum: 80000
            minimum: 100
            description: Maximum points per trace
            default: 2000
            title: Max Points
          description: Maximum points per trace
        - name: x_min
          in: query
          required: false
          schema:
            anyOf:
              - type: number
              - type: 'null'
            description: Lower x-range bound (inclusive)
            title: X Min
          description: Lower x-range bound (inclusive)
        - name: x_max
          in: query
          required: false
          schema:
            anyOf:
              - type: number
              - type: 'null'
            description: Upper x-range bound (inclusive)
            title: X Max
          description: Upper x-range bound (inclusive)
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationPlotDataResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ValidationPlotDataResponse:
      properties:
        type:
          anyOf:
            - type: string
            - type: 'null'
          title: Type
        traces:
          items:
            $ref: '#/components/schemas/ValidationPlotTrace'
          type: array
          title: Traces
        x_full_min:
          anyOf:
            - type: number
            - type: 'null'
          title: X Full Min
        x_full_max:
          anyOf:
            - type: number
            - type: 'null'
          title: X Full Max
        layout:
          additionalProperties: true
          type: object
          title: Layout
      type: object
      required:
        - traces
        - layout
      title: ValidationPlotDataResponse
      description: >-
        Response from GET /pipelines/{validations|datafits}/{job_id}/plot_data.


        Contains decimated trace data for a single validation plot, filtered to

        the requested x-range and downsampled to at most ``max_points`` per
        trace.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationPlotTrace:
      properties:
        name:
          type: string
          title: Name
        x:
          items:
            anyOf:
              - type: number
              - type: 'null'
          type: array
          title: X
        'y':
          items:
            anyOf:
              - type: number
              - type: 'null'
          type: array
          title: 'Y'
      type: object
      required:
        - name
        - x
        - 'y'
      title: ValidationPlotTrace
      description: Single decimated trace returned by the validation plot data endpoint.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````