Skip to content

Fix/show data labels#1

Draft
yoshiokatsuneo wants to merge 10 commits into
gi-no:masterfrom
yoshiokatsuneo:fix/show_data_labels
Draft

Fix/show data labels#1
yoshiokatsuneo wants to merge 10 commits into
gi-no:masterfrom
yoshiokatsuneo:fix/show_data_labels

Conversation

@yoshiokatsuneo

Copy link
Copy Markdown
Collaborator

What type of PR is this?

  • Bug Fix

Description

After updated to plotly.js to version 2.0, "show data labels" on bar chart does not works as "textposition" default was changed on plotly.js 2.0.

This PR fixes the issue by setting "textposition" explicitly to "null" or "auto"(plotly.js default).

How is this tested?

  • Manually

I confirmed that data label is shown only when "show data labels" is checked.

image image

yoshiokatsuneo and others added 10 commits February 25, 2025 10:58
This fixes the following exception:

```
UnboundLocalError: local variable 'value_is_number' referenced before assignment
  File "rq/worker.py", line 1431, in perform_job
    rv = job.perform()
  File "rq/job.py", line 1280, in perform
    self._result = self._execute()
  File "rq/job.py", line 1317, in _execute
    result = self.func(*self.args, **self.kwargs)
  File "redash/tasks/alerts.py", line 36, in check_alerts_for_query
    new_state = alert.evaluate()
  File "redash/models/__init__.py", line 1002, in evaluate
    new_state = next_state(op, value, threshold)
  File "redash/models/__init__.py", line 928, in next_state
    elif not value_is_number and op not in [OPERATORS.get("!="), OPERATORS.get("=="), OPERATORS.get("equals")]:
```
…eSQL JSON getredash#7339 (2nd try) (getredash#7348)

* Sanitize NaN, Infinite, -Infinite causing error when saving as PostgreSQL JSON getredash#7339 (2nd try)

* Move json nsanitaize to on the top of json_dumps

* Fix comment
Co-authored-by: snickerjp <snickerjp@gmail.com>
…h#7359)

* Upgrade plotly.js to version 2

* Fix styling error reported by styled
@yoshiokatsuneo yoshiokatsuneo marked this pull request as draft March 6, 2025 06:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants