CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-lightdash--common

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

Overall
score

72%

Evaluation72%

1.09x

Agent success when using this tile

Overview
Eval results
Files

rubric.jsonevals/scenario-13/

{
  "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
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-lightdash--common

tile.json