trading-vue-js
trading-vue-js copied to clipboard
Tools is being overridden.
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: []
}
},
That actually is expected , coz these settings are presets. But it remembered me about the toolList
feature.
@arunavo4 did you found a solution for this? I want to disable default tool or overwrite it
@oneart-dev can't remember now it was 2 years ago. Also this Library is not maintained / actively developed on.
Found the way:
this.chart = new DataCube({.....})
this.chart.data.tools.splice(1,3) // remove default line tools