Skip to content
/ dve Public
forked from metocean/dve

Visualisations built from a simple json structure.

License

Notifications You must be signed in to change notification settings

tcoats/dve

 
 

Repository files navigation

DVE

Visualisations built from a simple json structure.

Styles can be required from style/dve.styl'. DVE visualisations must be wrapped in a .dve-container` to work.

Chart layout

                            container                            
 ________________________________________________________________
|                                               |                |
|                                               |                |
|      ___________________________________      |                |
|     |                                   |     |                |
|     |                                   |     |                |
|     |                                   |     |                |
|     |                                   |     |                |
|     |               inner               |     |     legend     |
|     |                                   |     |                |
|     |                                   |     |                |
|     |                                   |     |                |
|     |___________________________________|     |                |
|                                               |                |
|                                               |                |
|_______________________________________________|________________|

The container is the element passed to dve. Its width should be set in CSS, but DVE may override with a max/min width.

The inner contains the actual graph. Axes, labels, and titles sit outside of the inner.

Legends and other extra areas are offest from the inner and its margins. These will usually have fixed widths.

Usually, the size of inner will be dynaimc. Ideally, the inner width will be the width of the provided container, less any legend and margin. However, if the container is too small or too big, the inner may decide to override this.

About

Visualisations built from a simple json structure.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CoffeeScript 91.1%
  • CSS 8.9%