User talk:RobinLeicester

Vega 5 dev
I noticed @Sandizer's comment on the Graph/Plans discussion, and thought I would open a discussion here, so as not to clog up the 'plans' page. (Every time I make a comment there, it appears to be the wrong thing to say).

With the hope that, just maybe, the Vega graph thing will actually get re-instated, I have had a renewed effort in the last few days to make sense it - although certainly not an expert programmer. I am coming from a standpoint of wanting to re-instate the OSM Location map template, which is a non-graph use of Vega, so most of the examples and tutorials are at best tangential and mostly irrelevant. However, they are all I have found so far and I am encouraged by what I have started to acheive.

Main Vega page resources are:
 * vega.github.io/editor online editor/test area, that has useful instant error messaging which gives a lot of clues on the problem. Much easier, therefore, than wikipedia, which just says 'Syntax Error'.
 * vega.github.io/vega/docs/porting-guide/ incredibly unhelpful guide, unless you are already up to speed with v2. But does at least help if you are trying out some v2 code.
 * vega.github.io/vega/examples/ wierd and confusing selection, but is at least a wide variety of different use cases, so there is a chance of finding a parallel to some problem or other. The documentation pages on the same site are very useful once you know how to start using them, but have taken me a long time to start finding helpful.

The other useful fact, which I was wary of mentioning in case someone turns it off, is that there is a working Vega5 installed on a Beta WMF site, which is accessed from the graph extension, for which some useful links are at https://en.wikipedia.beta.wmflabs.org/wiki/Template:Graph,_chart_and_plot_templates Having said that, it is not a fully working installation, in that, so far as I can see it is prevented from all access to other websites beyond the Beta site itself. So no external files, and no access to maps as yet. Also, no on hover, tooltips, or clickable links as yet, but they weren't available before either. (nb Signing in to the Beta site also comes with stern warnings about using new passwords and carrying your own risks, etc.)

Much of the tinkering I have acheived so far has been using the 'marks' features of Vega, of which I have got to grips with a few at https://en.wikipedia.beta.wmflabs.org/wiki/User:RobinLeicester/sandbox. The OSM Location map that may one day fly again, hides away all the vega features, so I am trying to re-develop that approach with sub-pages that do the vega bit, based on passed parameters. Apart from the actual base-maps, the other yawning chasm in my understanding is the need to use 'projections' and possibly 'transforms' to convert the lat and lon coordinates to put the feature in the right place on the chunk of map on display. I don't understand how 'Graph:Street map with marks' acheived this in v2, and am still nowhere near knowing how v5 will do it.

If there are people with programming skills, who are willing to get their head around aspects of Vega and help make use of the graph/Vega5 facilities, that will be a vital part of justifying the effort that WMF will be putting in to get it in place. RobinLeicester (talk) 23:18, 4 October 2023 (UTC)