shahinrostami / plotapi

Engaging visualisations, made easy.
https://plotapi.com
MIT License
267 stars 17 forks source link

Scaling option #3

Closed ynskoroglu closed 4 years ago

ynskoroglu commented 4 years ago

Hello I am totally new to world of interactive graphs though I wanted implement this system to my laboratories dateset. I have small issue regarding readability. I want to host my results locally but the resulting HTML doesn't scale or minimize and it becomes divided. Zooming in or out in the browser also doesn't scale down the graph as well. Is it possible to deploy a solution for this problem which users with little to no JS knowledge could also implement.

As of current my results look like this: Untitled

Result file is: Network_Chord_m.zip

shahinrostami commented 4 years ago

Hello @ynskoroglu

I will add height and width as optional flags to the chord constructor, this should give you control over the output. In the meantime, for readability, if you make your browser window narrow you will see that the diagram is responsive and will shrink to fit.

Once it's ready, I'll close this issue so that you are notified.

ynskoroglu commented 4 years ago

Thanks for swift response and small trick. Will follow the updates.

shahinrostami commented 4 years ago

You can update to chord 0.0.8 (commit 2b62379fd349107c272e89abfbd5b42900ea9e8d) which has the optional flag width! I hope this addresses your issue. Please let me know if this works for you and I'll close the issue :)

ynskoroglu commented 4 years ago

This is perfectly working, thanks for the update.