Archi Forum

Archi Plug-ins => jArchi => Topic started by: rchevallier on March 20, 2023, 20:32:35 PM

Title: Property Colormap (or Heatmap) Wizard
Post by: rchevallier on March 20, 2023, 20:32:35 PM
Hello all,

I've put on my Github the Colormap.ajs script, which is a Wizard in SWT to create a Colormap for a property.
Custom homegrown development without any ChatGpt inside ;D

Hope it will be useful for some of you

You can find the documentation here (https://github.com/rchevallier/jarchi-lib/blob/main/doc/Colormap.md)
and the files in the github jarchi-lib project (https://github.com/rchevallier/jarchi-lib)

The Wizard collect properties and their used values and allow interactive color definition, either for category or for numeric values

(https://github.com/rchevallier/jarchi-lib/raw/main/doc/img/Category%20scheme%20colors.png)

(https://github.com/rchevallier/jarchi-lib/raw/main/doc/img/Continuous%20scheme%20colors.png)


Title: Re: Property Colormap (or Heatmap) Wizard
Post by: Phil Beauvoir on March 20, 2023, 20:36:44 PM
I love it when people share clever jArchi stuff. Thanks for this!

Phil
Title: Re: Property Colormap (or Heatmap) Wizard
Post by: smileham on March 21, 2023, 16:50:51 PM
Wow  :o
Title: Re: Property Colormap (or Heatmap) Wizard
Post by: rchevallier on March 22, 2023, 09:15:32 AM
Thanks for your preceding work which was great inspiration for this script
Title: Re: Property Colormap (or Heatmap) Wizard
Post by: rheward on March 29, 2023, 15:32:16 PM
Amazing. I'm particularly interested in the use of "typings/globals.d.ts" code completion in VSCode. How do you set that up?
Title: Re: Property Colormap (or Heatmap) Wizard
Post by: rchevallier on March 30, 2023, 11:16:28 AM
Have simply a jsconfig.json with the proper content setup in your project (just the files you are working with, to avoid error message in case of variables or functions homonyms from different script)

See jsconfig.json (https://github.com/rchevallier/jarchi-lib/blob/main/scripts/jsconfig.json) in /scripts

*NB*: it's not perfect so if anyone has idea to improve it, thanks in advance
Title: Re: Property Colormap (or Heatmap) Wizard
Post by: rheward on March 30, 2023, 14:49:03 PM
I understand the idea of it, but still don't know the 'how to do it'. Where do I add that .json file in VSCode?
Title: Re: Property Colormap (or Heatmap) Wizard
Post by: rchevallier on April 04, 2023, 09:27:47 AM
official answer:

https://code.visualstudio.com/docs/languages/jsconfig

So in the same top level directory as your jArchi scripts
Title: Re: Property Colormap (or Heatmap) Wizard
Post by: rchevallier on April 18, 2023, 19:32:43 PM
Just to let know, I've released an update to the scripts with new features (v1.1.0-beta):

Breaking changes:

New features

Bug fixes

cf Github (https://github.com/rchevallier/jarchi-lib/tree/v1.1.0-beta)
Title: Re: Property Colormap (or Heatmap) Wizard
Post by: Phil Beauvoir on April 18, 2023, 19:44:42 PM
Again, thanks for sharing!