Chart settings

22 views
Skip to first unread message
Assigned to lorenzo...@geosolutionsgroup.com by me

Ivan Ilyunin

unread,
Jan 24, 2025, 3:49:18 AMJan 24
to mapstore-users
Hello.
I want to do some of chart setting modification.  I understand that it could be as using some tricks by changing the chart setting via standart MapStore page, as well as by modification some setting inside of folders maybe (?) \ or React programming. Could you please advise the most effective way?
I want to modify the line chart type with scatter mode.
The list of desired modification:
1. add third attribute to tooltip label for trace. By default only two attribute (X,Y) shows when I hover mouse on the chart.
2. add second track line when I move mouse on the chart. By default only X line is tracking. Is it possible to add Y track line \ or at least hide X?
3. The data on chart is a could of points. I would like to paint it in different colors by some attribute column. I tried to add few traces with data filter with "like" query for text column ('*test*' such syntaxis have been used ), howerver it didn't work, query return empty data; in the same time query filter for digit attribute work properly. So there are a couple of questions: should the query to text attribute work correctly for the chat source data? and what would be the most effective way to create few traces on the scatter mode line chart with different colors by some attribute?
Thank you 
Regards
Ilyunin Ivan

Lorenzo Natali

unread,
Jan 24, 2025, 6:28:26 AMJan 24
to mapstore-users
Hi,
1) 
2) actually it is not possible to change that particular behaviour. It could be a nice suggestion to allow show/hide the guide line on x/y axes.
3) It should be ideally provided by the classification style, but it is available only for bar charts at the moment (trace style mode = classification style). Line scatter mode shows only 1 marker color. Also this cn be a good improvement for the future.

Using multiple traces anyway can be an idea. The filter works for me:
The format is suggested by the tooltip (use like for case sensive filter, ilike for case insensitive, so to get a or A indifferently, use "ILIKE" isntead of "LIKE".
It worked for me. I inserted STATE_NAME ILIKE *A* and I have only the state with an "A" in the name. If you can show your issue case, we can consider to check if there is a bug or something.
Immagine incollata.png
Immagine incollata (2).png
screenshot-dev-mapstore_geosolutionsgroup_com-2025_01_24-12_20_21.png

Ivan Ilyunin

unread,
Jan 24, 2025, 7:58:07 AMJan 24
to mapstore-users
Thank you, very much, Lorenzo Natali. 
You made my day!! The query is worked properly - my mistake was adding the apostrophe  to the textbox with query.
About 1 and 2 - I will try the question in MapStore developer forum :-)
Regards
Ivan

Lorenzo Natali

unread,
Mar 27, 2025, 9:10:47 AMMar 27
to mapstore-users
Great to know. 
Happy to help!

Reply all
Reply to author
Forward
0 new messages