Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
216b506
boilerplate code for pie chart
artoonie Mar 11, 2025
4b5111e
First try at adding pie-chart.
skaphan Mar 11, 2025
9f7d004
Just followed the pattern and put the pie chart where it seems to fit...
skaphan Mar 12, 2025
4b9e87d
pass in actual json data (demo)
artoonie Mar 12, 2025
c544c8f
compression & slider demo
artoonie Mar 15, 2025
a610040
committing current version prior to merge
skaphan Mar 16, 2025
ba27870
Merge remote-tracking branch 'upstream/pie-template-shel' into pie-te…
skaphan Mar 16, 2025
676a79d
delete old version of pie.js
skaphan Mar 16, 2025
20e1192
Timeline Slider no longer included!
skaphan Mar 16, 2025
67855ba
It's mostly working except for animate and small step buttons
skaphan Mar 17, 2025
d63da06
deleted comment that's no longer true
skaphan Mar 17, 2025
6bdf663
It helps to bind the callback in the correct way... getting closer!
skaphan Mar 17, 2025
236c955
Everything is working except updating slider when pie chart animates.…
skaphan Mar 17, 2025
501dd53
I couldn't take that color palette Bruce recommended. Switching to s…
skaphan Mar 18, 2025
a6ee025
found the right method to notify slider of change of round.
skaphan Mar 18, 2025
d29c420
several appearance related improvements, making it serviceable on mob…
skaphan Mar 19, 2025
f95f093
fix embedded visualization
artoonie Mar 20, 2025
c006c66
Continuing work on responsiveness and scaling.
skaphan Mar 21, 2025
13bdc0e
Merge remote-tracking branch 'upstream/pie-template-shel' into pie-te…
skaphan Mar 21, 2025
ce3e85e
Merge remote-tracking branch 'upstream/main' into pie-template-shel
skaphan Mar 26, 2025
56a0113
Merge remote-tracking branch 'origin/main' into pie-template-shel
artoonie Jun 14, 2025
ec8132f
use configured color scheme
artoonie Jun 14, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion common/cloudflare.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,17 @@ def purge_vis_cache(cls, slug):
reverse('visualizeEmbedly', args=(slug, 'barchart-interactive')),
reverse('visualizeEmbedly', args=(slug, 'sankey')),
reverse('visualizeEmbedly', args=(slug, 'table')),
reverse('visualizeEmbedly', args=(slug, 'pie')),
reverse('visualizeBallotpedia', args=(slug,)),
reverse('visualizeEmbedded', args=(slug,)) + '?vistype=barchart-interactive',
reverse('visualizeEmbedded', args=(slug,)) + '?vistype=barchart-fixed',
reverse('visualizeEmbedded', args=(slug,)) + '?vistype=tabular-by-candidate',
reverse('visualizeEmbedded', args=(slug,)) + '?vistype=tabular-by-round',
reverse('visualizeEmbedded', args=(slug,)) + '?vistype=tabular-by-round-interactive',
reverse('visualizeEmbedded', args=(slug,)) + '?vistype=candidate-by-round',
reverse('visualizeEmbedded', args=(slug,)) + '?vistype=sankey'
reverse('visualizeEmbedded', args=(slug,)) + '?vistype=sankey',
reverse('visualizeEmbedded', args=(slug,)) + '?vistype=pie'

]
cls.purge_paths_cache(paths)

Expand Down
1 change: 1 addition & 0 deletions common/viewUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def get_data_for_graph(graph, config):
'tabularByRoundInteractive': tabularByRoundInteractive,
'graph': graph,
'textForWinner': as_caption(config).lower(),
'rawData': graph._debug_temporary_raw_JSON
}
roundDescriberData = get_data_for_round_describer(graph, config)
graphData.update(roundDescriberData)
Expand Down
Loading
Loading