brijeshp
Posts: 20
Joined: Tue May 19, 2020 10:31 am

Need Row URL for multiple series

Hi Support, I need to build chart (any chart) with realtime data pulling , can you please provide me reference of rowURL attribute for multiple series or lines in the chart. As in the below URL I can see its works for single line but not for multiple lines.

http://jsfiddle.net/gh/get/library/pure ... edata-rows
piotr.m
Posts: 1433
Joined: Mon Nov 18, 2019 8:15 am

Re: Need Row URL for multiple series

Hi,

We appreciate you reaching out to us with your inquiry.

Here you can learn more about how to do it:
https://stackoverflow.com/questions/546 ... ame-charts

Let us know if you have any further questions!

Kind Regards
brijeshp
Posts: 20
Joined: Tue May 19, 2020 10:31 am

Re: Need Row URL for multiple series

Thanks for the assistance, can you please confirm if we can use different rowURL for each series as we have a huge data for each series which need to be write & loaded from json file
piotr.m
Posts: 1433
Joined: Mon Nov 18, 2019 8:15 am

Re: Need Row URL for multiple series

Hi,

So here you would like a separate URL source for different series on one chart?

Must it be using rowsURL? Because if so then you would probably have to modify the core function and adapt to these options.

In fact, this can be easily done without an API using e.g. the standard fetch API and extracting this JSON for a specific series.
https://www.highcharts.com/docs/working ... processing

Best Regards
brijeshp
Posts: 20
Joined: Tue May 19, 2020 10:31 am

Re: Need Row URL for multiple series

actually I have a data generator that generate in different server so I was thinking to generate separate json file for each line, so there any other way to do same?
piotr.m
Posts: 1433
Joined: Mon Nov 18, 2019 8:15 am

Re: Need Row URL for multiple series

Hi,

Thanks for the clarification!

By all means, you can load the file for each series separately by creating the appropriate URL query, as in this example: https://jsfiddle.net/BlackLabel/y8wf4zac/

Kind Regards
brijeshp
Posts: 20
Joined: Tue May 19, 2020 10:31 am

Re: Need Row URL for multiple series

thanks for the reply, is enable pulling can fetch automatically in the https://jsfiddle.net/BlackLabel/y8wf4zac/ ?
Also can we apply filters like 1 day, 1 week etc in normal highchart?
piotr.m
Posts: 1433
Joined: Mon Nov 18, 2019 8:15 am

Re: Need Row URL for multiple series

Hi,

In the case of this custom code which I used in the above demo, I think it is better to use setInterval() method.
I would also like to ask what exactly do you mean by saying 'filters like 1 day, 1 week etc in normal highchart',
do you mean extracting these data for these specific time periods?

Best Regards
brijeshp
Posts: 20
Joined: Tue May 19, 2020 10:31 am

Re: Need Row URL for multiple series

yes for specific time period for line chart
piotr.m
Posts: 1433
Joined: Mon Nov 18, 2019 8:15 am

Re: Need Row URL for multiple series

Hi,

So for this task, I think you can use highstock.js and initialize highcharts with rangeSelector like in the example:
https://jsfiddle.net/BlackLabel/f8n7wxh6/
https://api.highcharts.com/highstock/rangeSelector

Kind Regards
zarexogre
Posts: 2
Joined: Sun Oct 03, 2021 8:03 am

Re: Need Row URL for multiple series

I have a simple chart setup to pull in json from my endpoint.
Using rowsurl. Works great when single series. I researched and tried loads of things cant get multiple series working.

My single series is like this and works great.

[
{
"time": "2021-10-02 13:00:26",
"down": 59.719999999999999
},
{
"time": "2021-10-02 13:45:28",
"down": 42.159999999999997
},
bla bla
]

I want to do something like this but its doesnt work, just shows me tonnes of series in legend. Was hoping to fine a simple example of using rowsurl with multiple data series.

[
[
[
"2021-10-02 13:00:26",
59.719999999999999
],
[
"2021-10-02 13:45:28",
42.159999999999997
],
......
],
[
[
"2021-10-02 13:00:30",
19.02
],
[
"2021-10-02 13:45:35",
60.109999999999999
],
......
],
[
[
"2021-10-02 13:00:35",
39.420000000000002
],
[
"2021-10-02 13:45:36",
50.469999999999999
],
......
]
]

Any help will be apprciated thanks.
User avatar
sebastian.h
Posts: 1734
Joined: Fri Aug 07, 2020 7:08 am

Re: Need Row URL for multiple series

Hi zarexogre,
Thanks for your question and welcome to our forum.

For now, you can try something like this to display multiple series:
https://jsfiddle.net/BlackLabel/fst12wu6/

You may need to switch the rows and columns of the input data using data.switchRowsAndColumns to get what you need.
https://api.highcharts.com/highcharts/d ... AndColumns

It would be best if you showed your attempts in the example I provided.

Let me know how are you going with this.
Best regards.
Sebastian Hajdus
Highcharts Developer
zarexogre
Posts: 2
Joined: Sun Oct 03, 2021 8:03 am

Re: Need Row URL for multiple series

Thats working thank you! Would be really useful if the rowsurl could handle multiple series? Also I think I will need a setInterval polling for the graph to be realtime that sound right? thanks again for your help. spent ages trying to get rowsurl working.
User avatar
sebastian.h
Posts: 1734
Joined: Fri Aug 07, 2020 7:08 am

Re: Need Row URL for multiple series

Hi,
That's great to hear.

You can submit it as a future request:
https://github.com/highcharts/highchart ... new/choose

Setting setInterval to initiate subsequent queries makes sense to me.

Best regards.
Sebastian Hajdus
Highcharts Developer

Return to “Highcharts Usage”