lightweight-charts-python icon indicating copy to clipboard operation
lightweight-charts-python copied to clipboard

chart.marker method throwing error in version 2 whereas in main version it is working fine

Open anilwarbhe opened this issue 1 year ago • 1 comments

Question

chart.marker method throwing error in version 2 whereas in main version it is working fine

Code example

No response

anilwarbhe avatar May 19 '24 16:05 anilwarbhe

    window.szjsndno.markers.push({
            time: 2024-04-18 15:05:00,
            position: 'aboveBar',
            color: 'red',
            shape: 'arrowDown',
            text: 'SEXIT 350.6',
            id: 'window.pvxkbfao'
            });
        window.szjsndno.series.setMarkers(window.szjsndno.markers)

    window.szjsndno.series.applyOptions({
        lastValueVisible: true,
        priceLineVisible: true,
        title: 'PL: 59.7',
    })',

error -> SyntaxError[4:33] Unexpected number '10'. Expected '}' to end an object literal.

anilwarbhe avatar May 19 '24 16:05 anilwarbhe

Fixed in the latest push to 2.0

btw, Thank you for your help with 2.0! I'm trying to roll it out asap and it really helps having people find things i miss.

Louis

louisnw01 avatar May 25 '24 13:05 louisnw01