hamishgibbs / rt_vis

Interactive RT visualisation
3 stars 0 forks source link

Lift colours out #39

Open hamishgibbs opened 3 years ago

hamishgibbs commented 3 years ago

Currently, colours are embedded in the visualisation:

https://github.com/hamishgibbs/rt_vis/blob/022a1eb9392a6e951b7aa8e7e62b3ac12926bd40/src/js/map.ts#L57-L70

and:

https://github.com/hamishgibbs/rt_vis/blob/022a1eb9392a6e951b7aa8e7e62b3ac12926bd40/src/css/ts.css#L3-L46

and:

https://github.com/hamishgibbs/rt_vis/blob/022a1eb9392a6e951b7aa8e7e62b3ac12926bd40/src/css/setup.css#L114-L124

These should be lifted out of rt_vis and passed as a config variable from RtD3 (With defaults included in the package). Or included in the config in index.html in rt_vis for development.