{"record":{"id":"7fe1bb73daa55a6a","repo":"apache/echarts","slug":"line-not-support-coordinatesystem-besides-cartesia","errorCode":null,"errorMessage":"Line not support coordinateSystem besides cartesian and polar","messagePattern":"Line not support coordinateSystem besides cartesian and polar","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/chart/line/LineSeries.ts","lineNumber":151,"sourceCode":"    */\n    triggerEvent?: boolean | 'line' | 'area'\n}\n\nclass LineSeriesModel extends SeriesModel<LineSeriesOption> {\n    static readonly type = 'series.line';\n    type = LineSeriesModel.type;\n\n    static readonly dependencies = ['grid', 'polar'];\n\n    coordinateSystem: Cartesian2D | Polar;\n\n    hasSymbolVisual = true;\n\n    getInitialData(option: LineSeriesOption): SeriesData {\n        if (__DEV__) {\n            const coordSys = option.coordinateSystem;\n            if (coordSys !== 'polar' && coordSys !== 'cartesian2d') {\n                throw new Error('Line not support coordinateSystem besides cartesian and polar');\n            }\n        }\n        return createSeriesData(null, this, {\n            useEncodeDefaulter: true\n        });\n    }\n\n    static defaultOption: LineSeriesOption = {\n        // zlevel: 0,\n        z: 3,\n        coordinateSystem: 'cartesian2d',\n        legendHoverLink: true,\n\n        clip: true,\n\n        label: {\n            position: 'top'\n        },","sourceCodeStart":133,"sourceCodeEnd":169,"githubUrl":"https://github.com/apache/echarts/blob/30076aedcd7b7f65d8dd8e8d9ece46ce778133a3/src/chart/line/LineSeries.ts#L133-L169","documentation":"DEV-only guard in LineSeries.getInitialData: the line series only renders on the 'cartesian2d' (grid) or 'polar' coordinate systems. Any other coordinateSystem value (geo, singleAxis, calendar, or a typo) is rejected. Stripped in production.","triggerScenarios":"Setting series.coordinateSystem to 'geo', 'singleAxis', 'calendar', or any other/unknown value on a line series.","commonSituations":"Migrating a line chart onto a singleAxis or geo without switching to a compatible series type; typo in coordinateSystem; leftover config from a different chart type.","solutions":["Use 'cartesian2d' or 'polar' (or omit coordinateSystem to get the cartesian2d default)","For map-based lines, switch to the 'lines' series with coordinateSystem 'geo'","Check coordinateSystem for typos"],"exampleFix":"// before\n{ type: 'line', coordinateSystem: 'singleAxis', data: [...] }\n\n// after\n{ type: 'line', coordinateSystem: 'cartesian2d', data: [...] }\n// or, for map lines:\n{ type: 'lines', coordinateSystem: 'geo', data: [{ coords: [...] }] }","handlingStrategy":"validation","validationCode":"const ALLOWED = ['cartesian2d', 'polar'];\n(option.series || []).forEach((s: any) => {\n  if (s.type === 'line' && s.coordinateSystem != null && !ALLOWED.includes(s.coordinateSystem)) {\n    console.error('[line] unsupported coordinateSystem: ' + s.coordinateSystem);\n  }\n});","typeGuard":"const isLineCoordSys = (cs?: string): cs is 'cartesian2d' | 'polar' =>\n  cs === 'cartesian2d' || cs === 'polar';","tryCatchPattern":null,"preventionTips":["Leave coordinateSystem unset (defaults to cartesian2d) unless you need polar","Validate before setOption","Use the 'lines' series for geo-based line visuals"],"tags":["line-series","coordinate-system","dev-only"],"backgroundTag":null,"analyzedSha":"30076aedcd7b7f65d8dd8e8d9ece46ce778133a3","analyzedAt":"2026-08-12T12:42:28.134Z","schemaVersion":2},"datasetVersion":"2026-08-12T13:17:24.610Z"}