trading-vue-js icon indicating copy to clipboard operation
trading-vue-js copied to clipboard

Tools is being overridden.

Open arunavo4 opened this issue 4 years ago • 4 comments

Description

@C451 Found one more issue, Looks like the tools section is being overridden. Even when I explicitly specify 2 tools and load data synchronously I get 4 Tools

"tools": [
        {
            "type": "LineTool",
            "settings": {
                "color": "#35c460"
            }
        },
        {
            "type": "LineTool:Extended",
            "settings": {
                "color": "#3186c4"
            }
        }
    ]

 data() {
        return {
            chart: new DataCube(Data) ,
            overlays: []
        }
    },

arunavo4 avatar Jul 19 '20 14:07 arunavo4

That actually is expected , coz these settings are presets. But it remembered me about the toolList feature.

C451 avatar Jul 19 '20 17:07 C451

@arunavo4 did you found a solution for this? I want to disable default tool or overwrite it

oneart-dev avatar Jun 21 '22 20:06 oneart-dev

@oneart-dev can't remember now it was 2 years ago. Also this Library is not maintained / actively developed on.

arunavo4 avatar Jun 22 '22 06:06 arunavo4

Found the way:

this.chart = new DataCube({.....})
this.chart.data.tools.splice(1,3) // remove default line tools

oneart-dev avatar Jun 22 '22 13:06 oneart-dev