CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/npm-lightdash--common

tessl install tessl/npm-lightdash--common@0.2231.5

Shared TypeScript library for the Lightdash platform containing common types, utilities, and business logic for analytics workflows

Agent Success

Agent success rate when using this tile

72%

Improvement

Agent success rate improvement when using this tile compared to baseline

1.09x

Baseline

Agent success rate without this tile

66%

rubric.jsonevals/scenario-19/

{
  "context": "This criteria evaluates how well the engineer uses @lightdash/common's dual y-axis chart configuration functionality, specifically focusing on proper usage of the AxisSide enum, CartesianChartDisplay type structure, yAxis array configuration, and series assignment via whichYAxis property.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "AxisSide enum usage",
      "description": "Uses the AxisSide enum from @lightdash/common correctly with AxisSide.LEFT (value 0) and AxisSide.RIGHT (value 1) for series assignment to y-axes.",
      "max_score": 20
    },
    {
      "name": "CartesianChartDisplay structure",
      "description": "Constructs CartesianChartDisplay type correctly with yAxis array property containing 2 elements (one for each axis), each with label and position properties. The series property should be an object mapping series IDs to configuration objects containing whichYAxis property.",
      "max_score": 25
    },
    {
      "name": "Series axis assignment",
      "description": "Correctly assigns series to axes using the whichYAxis property in series configuration, setting it to AxisSide.LEFT or AxisSide.RIGHT. Demonstrates understanding that series without whichYAxis default to left axis.",
      "max_score": 20
    },
    {
      "name": "yAxisIndex mapping",
      "description": "Generates ECharts specification where series objects include yAxisIndex property (0 for left axis, 1 for right axis) that correctly maps to the corresponding axis in the yAxis array. Demonstrates understanding of the relationship between whichYAxis configuration and yAxisIndex in the generated spec.",
      "max_score": 20
    },
    {
      "name": "Axis filtering logic",
      "description": "Implements filtering logic that correctly identifies which series belong to which axis by checking the whichYAxis property value, handling the default case where undefined or values other than 1 (AxisSide.RIGHT) are treated as left axis (AxisSide.LEFT).",
      "max_score": 15
    }
  ]
}

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
npmpkg:npm/@lightdash/common@0.2231.x
tile.json