Hello,
Welcome to our forum and thanks for contacting us with your question!
I'm not sure what you mean because the question is not very clear.
The demo you linked shows how to update the data. How to get this data from the server (firebase) in Swift is a more general question, not related to Highcharts and I suggest you ask them, for example, on StackOverflow or look in the Swift documentation
Let me know if you have any further questions!
Best regards!
Michał Filipiec
Highcharts Developer
https://blacklabel.pl/highcharts/
chart.events.load = HIFunction(jsFunction: "function () { var series = this.series[0]; setInterval(function () { var x = (new Date()).getTime(), // current time y = Math.random(); series.addPoint([x, y], true, true); }, 1000); }")
options.chart = chart
Let me know if this works.
Best regards!
Michał Filipiec
Highcharts Developer
https://blacklabel.pl/highcharts/
After removing the function of time, the graph does not run
Code: Select all
chart.events.load = HIFunction(jsFunction: "function () { var series = this.series[0]; setInterval(function () { var x = (new Date()).getTime(), // current time y = Math.random(); series.addPoint([x, y], true, true); }, 1000); }")
options.chart = chart
chart.events.load = HIFunction(jsFunction: "function () { var series = this.series[0]; setInterval(function () { var x = (new Date()).getTime(), time y = Math.random(); series.addPoint([x, y], true, true); }, 1000); }")
I removed "// current" and can't display the chart, like this code right?
The function I sent is responsible for the currency of the title, not the dynamic adding of points every second. As I wrote above, I would like you to check if it will execute correctly and the title will be changed to test if charts.events.load is executing at all
Regards!
Michał Filipiec
Highcharts Developer
https://blacklabel.pl/highcharts/