App Developer XY-Chart add few more series

Post here to discuss any new features, components, chips, etc, that you would like to see in Flowcode.
Post Reply
stefan.erni
Valued Contributor
Posts: 1046
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 198 times
Been thanked: 220 times

App Developer XY-Chart add few more series

Post by stefan.erni »

Hi Ben

Would it be possible to have a few more series for the XY-Chart component? 10 instead of 8 would be good, 16 would be great. With 16 series, the chart fits to the DSP Multiplexer component.

regards

Stefan
chart_2022-03-08_15-52-31.jpg
chart_2022-03-08_15-52-31.jpg (26.99 KiB) Viewed 7630 times

Steve-Matrix
Matrix Staff
Posts: 1530
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 212 times
Been thanked: 353 times

Re: App Developer XY-Chart add few more series

Post by Steve-Matrix »

It could be done, but at the moment this would be quite difficult. I will have a look and see if there is any way to make this easier.

stefan.erni
Valued Contributor
Posts: 1046
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 198 times
Been thanked: 220 times

Re: App Developer XY-Chart add few more series

Post by stefan.erni »

Hi Steve

What about the extension from the chart Series to 10 or 16?

regards

Stefan

Steve-Matrix
Matrix Staff
Posts: 1530
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 212 times
Been thanked: 353 times

Flowcode v10 Re: App Developer XY-Chart add few more series

Post by Steve-Matrix »

Hi Stefan,

If you need more traces on a chart, then you can use 2 charts as in the attached example.

The two charts are in the same location and one of them has a transparent background, so it will look like there is only one chart. You can use this trick to have as many traces on chart as you want.
ten traces.png
ten traces.png (352.08 KiB) Viewed 6328 times
Attachments
ten traces example.fcsx
(29.38 KiB) Downloaded 618 times

stefan.erni
Valued Contributor
Posts: 1046
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 198 times
Been thanked: 220 times

Re: App Developer XY-Chart add few more series

Post by stefan.erni »

Hi Steve

Yes thats working fine.

Just one small question.
can i set parameters with a build in function (command).
like this example :
2024-05-30_14-59-01.PNG
2024-05-30_14-59-01.PNG (101.58 KiB) Viewed 6322 times

Steve-Matrix
Matrix Staff
Posts: 1530
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 212 times
Been thanked: 353 times

Re: App Developer XY-Chart add few more series

Post by Steve-Matrix »

I'm not sure. There are dedicated functions to reposition components. What are you trying to achieve?

stefan.erni
Valued Contributor
Posts: 1046
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 198 times
Been thanked: 220 times

Re: App Developer XY-Chart add few more series

Post by stefan.erni »

with a switch the user can choose whether he wants the chart overlapping or separate. to do this i have to change the y position of the chart.
2024-05-30_17-50-45.PNG
2024-05-30_17-50-45.PNG (135.05 KiB) Viewed 6316 times
can still ask something unimportant.
Why can I only choose 5 series and not 8?
2024-05-30_17-55-36.PNG
2024-05-30_17-55-36.PNG (25.48 KiB) Viewed 6316 times

Steve-Matrix
Matrix Staff
Posts: 1530
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 212 times
Been thanked: 353 times

Re: App Developer XY-Chart add few more series

Post by Steve-Matrix »

stefan.erni wrote:
Thu May 30, 2024 4:59 pm
can still ask something unimportant.
Why can I only choose 5 series and not 8?
We use a 3rd-party graphing tool within Flowcode for this and that is limited to 5 different colours for the traces. So trace 5 must be the same colour as trace 1, etc.

This can be overcome using that overlapping chart trick. BTW, you could have more than 2 overlapping if you needed. But lots of traces on the same chart can be difficult to view for the user.

I will answer your other question shortly...

Steve-Matrix
Matrix Staff
Posts: 1530
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 212 times
Been thanked: 353 times

Re: App Developer XY-Chart add few more series

Post by Steve-Matrix »

A lot of the old object move function calls are not yet implemented for the 2d panel, so I would suggest making objects visible or invisible instead of actually moving them on the panel programmatically. This allows you to be more precise with their positions too. See the attached for an example.
Attachments
ten traces example 02.fcsx
(39.74 KiB) Downloaded 554 times

Post Reply