-
Notifications
You must be signed in to change notification settings - Fork 9
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
"kindPrinter[dfKind] is not a function" for distributions on pairs of integers #68
Comments
I'm slowly (1) transitioning to use just So using |
|
Ah, I believe you're hitting a bug that was fixed in b727920 -- try using the latest version on the cdn, |
Thanks, that worked. Is there any way to still get the colored matrix? For visualizing tic-tac-toe moves, it was a perfect fit. |
For the moment, no, but I think fixing #23 will make the colored matrix possible again. You'll have to manually pass in the vega spec, something like this: viz.vegaLite(distribution,
{
data: {values: data},
mark: "text",
encoding: {
row: {field: 'x', type: 'nominal'},
column: {field: 'y', type: 'nominal'},
color: {field: 'prob', type: 'quantitative'},
text: {field: 'prob', type: 'quantitative'}
},
config: {mark: {applyColorToBackground: true}, numberFormat: ".1e",
scale: {textBandWidth: 40}
}
}) |
In a previous version of
webppl-viz
, this code resulted in a table with colored cells:Now, I get:
The text was updated successfully, but these errors were encountered: