Clean data chart
See original GitHub issueThere is a function by which a chart is built for a certain pair of currencies, and when switching this pair, in theory I need to clear the chart and load new data into it. If I add the line chart.removeSeries (lineSeries);
then the chart is always empty, what’s the problem?
function cd(){
const lineSeries = chart.addLineSeries();
let data_chart = [];
// chart.removeSeries(lineSeries);
if (typeof(Data_for_chart[CoinVal]) != "undefined"){
if (typeof(Data_for_chart[CoinVal][CoinProd]) != "undefined"){
if ((typeof(Data_for_chart[CoinVal][CoinProd]['Price']) != "undefined")&&(typeof(Data_for_chart[CoinVal][CoinProd]['Time']) != "undefined")){
console.log(Data_for_chart[CoinVal][CoinProd]['Price'])
for(var i = 0; i < Data_for_chart[CoinVal][CoinProd]['Price'].length; i++){
data_chart.push({time:Data_for_chart[CoinVal][CoinProd]['Time'][i], value:Data_for_chart[CoinVal][CoinProd]['Price'][i]});
}
lineSeries.setData(data_chart);
}
}
}
}
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (5 by maintainers)
Top Results From Across the Web
Top ten ways to clean your data - Microsoft Support
The basics of cleaning your data · Insert a new column (B) next to the original column (A) that needs cleaning. · Add...
Read more >Data cleansing with graph visualization - Cambridge Intelligence
The first step in the data cleansing process is understanding where data quality issues exist. In this blog post we use graph visualizations ......
Read more >10 Super Neat Ways to Clean Data in Excel Spreadsheets
#4 – Remove Duplicates · Select the data and Go to Home –> Conditional Formatting –> Highlight Cells Rules –> Duplicate Values. ·...
Read more >How to prepare your data for analysis and charting in Excel ...
How long will cleaning up my data take? · 1. Look at the data & understand it · 2. Rename your file ·...
Read more >Top 8 Excel Data Cleaning Techniques to Know - Simplilearn
Now, you must learn how to eliminate conditional formatting for cleaning data in Excel. This time, consider a different sheet.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Believe @johnworthley is looking for update()
@timocov sure. While I have such a solution. When a trading pair changes, the OHLC data is rebuilt, while the chart remains in the same coordinates along X and Y. It is possible to align the graph only horizontally
chart.timeScale().resetTimeScale()
, but not vertically, I do not know this possibility.