Author Topic: Visualisation using d3.js and EA simulations  (Read 6068 times)

Rethinking

  • EA Novice
  • *
  • Posts: 14
  • Karma: +1/-0
  • Curious about stuff ... including how to use EA
    • View Profile
    • Rethinking Transport
Visualisation using d3.js and EA simulations
« on: August 24, 2021, 04:33:06 pm »
I see that you can include Javascript libraries using a standard INC command, but I don't really understand how to.

I was wondering "Can you use standard Javascript libraries such as d3.js - in order to visualise the output of an EA simulation ?".

Is there a tutorial or a blog-post that would help point me in the right direction ?

I think the combination of EA and d3.js would be very powerful together. However, it appears that some standard Javascript functionality such as .forEach() is locked down, so I suspect that a detailed library like d3.js would struggle.

Thanks,
Rethinking
Rethinking Transport
- A Transport consultancy with a difference

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +566/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Visualisation using d3.js and EA simulations
« Reply #1 on: August 24, 2021, 04:37:58 pm »
INC helps you include another EA script. It doesn't include external scripts.

You could however add D3.js to the local scripts folder in your program files, and it will appear as a local script in EA.
Then you can include it.

In theory it should work, but I've never tried something like that myself.

Geert

Rethinking

  • EA Novice
  • *
  • Posts: 14
  • Karma: +1/-0
  • Curious about stuff ... including how to use EA
    • View Profile
    • Rethinking Transport
Re: Visualisation using d3.js and EA simulations
« Reply #2 on: August 24, 2021, 05:48:29 pm »
Thanks, Geert.

I will have a play around and report back.

P.S. I was just watching one of your YouTube videos on scripting, so thanks for the prompt reply.

Rethinking.
Rethinking Transport
- A Transport consultancy with a difference

Rethinking

  • EA Novice
  • *
  • Posts: 14
  • Karma: +1/-0
  • Curious about stuff ... including how to use EA
    • View Profile
    • Rethinking Transport
Re: Visualisation using d3.js and EA simulations
« Reply #3 on: August 25, 2021, 01:00:16 am »
Geert (or anyone else),

I am a bit confused by the difference between behaviours, scripts and code, which presumably could each or all be written in Javascript.

Can anyone explain the difference to me simply, or point me in the right direction ?

Many thanks,

Rethinking
Rethinking Transport
- A Transport consultancy with a difference

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +566/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Visualisation using d3.js and EA simulations
« Reply #4 on: August 25, 2021, 02:33:56 am »
That will need to be someone else. I've never used those simulations.

Geert