-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from mysociety/charting-improvement
Charting improvement
- Loading branch information
Showing
20 changed files
with
837 additions
and
548 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
FROM python:3.8-buster | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
COPY packages_setup.bash / | ||
RUN chmod +x /packages_setup.bash && /packages_setup.bash | ||
|
||
COPY base_requirements.txt / | ||
FROM python:3.8-buster | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
COPY packages_setup.bash / | ||
RUN chmod +x /packages_setup.bash && /packages_setup.bash | ||
|
||
COPY base_requirements.txt / | ||
RUN pip install -r /base_requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,21 @@ | ||
from . import theme as altair_theme | ||
from . import sw_theme as altair_sw_theme | ||
from .chart import Chart, Renderer, ChartEncoding | ||
from .chart import Chart, Renderer, ChartEncoding, ChartTitle | ||
from .saver import MSSaver, SWSaver, render, sw_render | ||
|
||
import altair as alt | ||
|
||
alt.themes.register('mysoc_theme', lambda: altair_theme.mysoc_theme) | ||
alt.themes.enable('mysoc_theme') | ||
alt.themes.register("mysoc_theme", lambda: altair_theme.mysoc_theme) | ||
alt.themes.enable("mysoc_theme") | ||
|
||
alt.renderers.register('mysoc_saver', render) | ||
alt.renderers.enable('mysoc_saver') | ||
alt.renderers.register("mysoc_saver", render) | ||
alt.renderers.enable("mysoc_saver") | ||
|
||
|
||
def enable_sw_charts(): | ||
alt.themes.register('societyworks_theme', lambda: altair_sw_theme.sw_theme) | ||
alt.themes.enable('societyworks_theme') | ||
|
||
alt.renderers.register('sw_saver', sw_render) | ||
alt.renderers.enable('sw_saver') | ||
Renderer.default_renderer = SWSaver | ||
|
||
alt.themes.register("societyworks_theme", lambda: altair_sw_theme.sw_theme) | ||
alt.themes.enable("societyworks_theme") | ||
|
||
alt.renderers.register("sw_saver", sw_render) | ||
alt.renderers.enable("sw_saver") | ||
Renderer.default_renderer = SWSaver |
Oops, something went wrong.