-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specify additional configuration #4
Comments
I think there are three sub-issues within this issue:
I think the first sub-issue is the same as #7. Let's move discussion from here to there. I think the second sub-issue needs more information about what additional configuration we'd like to specify. We could use Vega-Lite's What do you think, @ccunningham101? 🙂 |
I agree with all of the above, thanks for the clear explanation!
|
#22 describes an additional configuration option. I think this along with the title and axis labels would be a good first step for some customisation |
This is a good opportunity to think about how the generate_deciles_charts:
run: >
python:latest analysis/deciles_charts.py
--input-files output/measure_*.csv
--output-dir output
config:
show_outer_percentiles: true
outputs:
- tables
- charts
needs: [generate_measures]
outputs:
moderately_sensitive:
deciles_tables: output/deciles_table_*.png
deciles_charts: output/deciles_chart_*.png However, this invocation could be confusing: do we show outer percentiles on the tables and charts? If the table isn't for presentation, then is "show" the best verb? An alternative invocation of deciles-charts could look like this: generate_deciles_charts:
run: >
python:latest analysis/deciles_charts.py
--input-files output/measure_*.csv
--output-dir output
config:
tables:
output: true
outer_percentiles: false
charts:
output: true
outer_percentiles: false
encoding:
x:
title: "Date"
scale:
domain: ["min", "max"]
y:
title: "Value"
scale:
domain: [0, "max"]
needs: [generate_measures]
outputs:
moderately_sensitive:
deciles_tables: output/deciles_table_*.png
deciles_charts: output/deciles_chart_*.png I've given default values, so the I'd really appreciate your feedback on ☝🏻, because although we can refactor configuration, this gets harder and harder as we add more. Ideally, we'd like to make the
I'm going to create a new issue for "Add vertical plotlines to show important dates", because this feels like a non-trivial amount of work. It would be useful to discuss examples, too. |
I think we can be consistent between outer percentiles across tables and charts but agree if we are, something like I agree with the three requirements of the config and the single view spec looks like it would achieve that. Could we achieve something similar with matplotlib stylesheets? I'm not familiar enough with vega-lite to understand the advantages/disadvantages! |
I think I agree with you, @LFISHER7 🙂 Ultimately, a deciles chart should be a rendering of a deciles table. This would be good for redaction; if you saw I've not investigated Matplotlib stylesheets, but would suggest not coupling deciles-charts to an underlying library, such as Matplotlib, too tightly. Hence, I'm not suggesting that we use Vega-Lite (the library), just a subset of the spec. I'm confident that the spec is expressive and intuitive, given the history of the project; more expressive and intuitive than |
Given that, the spec looks like a good option for what we want! |
The current system will generate a decile chart for every file matching this measure regex
Users may want to be able to provide
Per file:
or
To allow a combo of per-file and group with regex
For regex could
The text was updated successfully, but these errors were encountered: