mirror of
https://github.com/gradio-app/gradio.git
synced 2024-11-27 01:40:20 +08:00
Fix darkmode text color for altair plots (#3555)
* dont apply formatting for non-native plots * CHANGELOG * Remove unused diff
This commit is contained in:
parent
053504a691
commit
7140903dd6
@ -8,6 +8,7 @@ No changes to highlight.
|
||||
|
||||
## Bug Fixes:
|
||||
|
||||
- Fixed bug where text for altair plots was not legible in dark mode by [@freddyaboulton](https://github.com/freddyaboulton) in [PR 3555](https://github.com/gradio-app/gradio/pull/3555)
|
||||
- Fixes `Chatbot` and `Image` components so that files passed during processing are added to a directory where they can be served from, by [@abidlabs](https://github.com/abidlabs) in [PR 3523](https://github.com/gradio-app/gradio/pull/3523)
|
||||
|
||||
## Documentation Changes:
|
||||
|
@ -61,8 +61,10 @@
|
||||
|
||||
$: if (type == "altair") {
|
||||
spec = JSON.parse(plot);
|
||||
const config = create_config(darkmode);
|
||||
spec.config = config;
|
||||
if (value.chart || "") {
|
||||
const config = create_config(darkmode);
|
||||
spec.config = config;
|
||||
}
|
||||
switch (value.chart || "") {
|
||||
case "scatter":
|
||||
if (spec.encoding.color && spec.encoding.color.type == "nominal") {
|
||||
|
Loading…
Reference in New Issue
Block a user