openbb-charting 2.3.0__tar.gz → 2.3.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. {openbb_charting-2.3.0 → openbb_charting-2.3.2}/PKG-INFO +5 -8
  2. {openbb_charting-2.3.0 → openbb_charting-2.3.2}/openbb_charting/charts/helpers.py +2 -0
  3. {openbb_charting-2.3.0 → openbb_charting-2.3.2}/openbb_charting/charts/relative_rotation.py +5 -3
  4. openbb_charting-2.3.2/openbb_charting/core/assets/plotly-3.0.0.min.js +3879 -0
  5. {openbb_charting-2.3.0 → openbb_charting-2.3.2}/openbb_charting/core/backend.py +1 -1
  6. openbb_charting-2.3.2/openbb_charting/core/plotly.html +4033 -0
  7. {openbb_charting-2.3.0 → openbb_charting-2.3.2}/openbb_charting/core/plotly_ta/ta_class.py +1 -2
  8. {openbb_charting-2.3.0 → openbb_charting-2.3.2}/pyproject.toml +5 -8
  9. openbb_charting-2.3.0/openbb_charting/core/assets/plotly-2.35.2.min.js +0 -8
  10. openbb_charting-2.3.0/openbb_charting/core/plotly.html +0 -4208
  11. {openbb_charting-2.3.0 → openbb_charting-2.3.2}/README.md +0 -0
  12. {openbb_charting-2.3.0 → openbb_charting-2.3.2}/openbb_charting/__init__.py +0 -0
  13. {openbb_charting-2.3.0 → openbb_charting-2.3.2}/openbb_charting/charting.py +0 -0
  14. {openbb_charting-2.3.0 → openbb_charting-2.3.2}/openbb_charting/charts/__init__.py +0 -0
  15. {openbb_charting-2.3.0 → openbb_charting-2.3.2}/openbb_charting/charts/correlation_matrix.py +0 -0
  16. {openbb_charting-2.3.0 → openbb_charting-2.3.2}/openbb_charting/charts/generic_charts.py +0 -0
  17. {openbb_charting-2.3.0 → openbb_charting-2.3.2}/openbb_charting/charts/price_historical.py +0 -0
  18. {openbb_charting-2.3.0 → openbb_charting-2.3.2}/openbb_charting/charts/price_performance.py +0 -0
  19. {openbb_charting-2.3.0 → openbb_charting-2.3.2}/openbb_charting/core/__init__.py +0 -0
  20. {openbb_charting-2.3.0 → openbb_charting-2.3.2}/openbb_charting/core/assets/Terminal_icon.png +0 -0
  21. {openbb_charting-2.3.0 → openbb_charting-2.3.2}/openbb_charting/core/chart_style.py +0 -0
  22. {openbb_charting-2.3.0 → openbb_charting-2.3.2}/openbb_charting/core/config/__init__.py +0 -0
  23. {openbb_charting-2.3.0 → openbb_charting-2.3.2}/openbb_charting/core/config/openbb_styles.py +0 -0
  24. {openbb_charting-2.3.0 → openbb_charting-2.3.2}/openbb_charting/core/dummy_backend.py +0 -0
  25. {openbb_charting-2.3.0 → openbb_charting-2.3.2}/openbb_charting/core/openbb_figure.py +0 -0
  26. {openbb_charting-2.3.0 → openbb_charting-2.3.2}/openbb_charting/core/plotly_ta/__init__.py +0 -0
  27. {openbb_charting-2.3.0 → openbb_charting-2.3.2}/openbb_charting/core/plotly_ta/base.py +0 -0
  28. {openbb_charting-2.3.0 → openbb_charting-2.3.2}/openbb_charting/core/plotly_ta/data_classes.py +0 -0
  29. {openbb_charting-2.3.0 → openbb_charting-2.3.2}/openbb_charting/core/plotly_ta/plugins/__init__.py +0 -0
  30. {openbb_charting-2.3.0 → openbb_charting-2.3.2}/openbb_charting/core/plotly_ta/plugins/custom_indicators_plugin.py +0 -0
  31. {openbb_charting-2.3.0 → openbb_charting-2.3.2}/openbb_charting/core/plotly_ta/plugins/momentum_plugin.py +0 -0
  32. {openbb_charting-2.3.0 → openbb_charting-2.3.2}/openbb_charting/core/plotly_ta/plugins/overlap_plugin.py +0 -0
  33. {openbb_charting-2.3.0 → openbb_charting-2.3.2}/openbb_charting/core/plotly_ta/plugins/trend_indicators_plugin.py +0 -0
  34. {openbb_charting-2.3.0 → openbb_charting-2.3.2}/openbb_charting/core/plotly_ta/plugins/volatility_plugin.py +0 -0
  35. {openbb_charting-2.3.0 → openbb_charting-2.3.2}/openbb_charting/core/plotly_ta/plugins/volume_plugin.py +0 -0
  36. {openbb_charting-2.3.0 → openbb_charting-2.3.2}/openbb_charting/core/plotly_ta/ta_helpers.py +0 -0
  37. {openbb_charting-2.3.0 → openbb_charting-2.3.2}/openbb_charting/core/table.html +0 -0
  38. {openbb_charting-2.3.0 → openbb_charting-2.3.2}/openbb_charting/core/to_chart.py +0 -0
  39. {openbb_charting-2.3.0 → openbb_charting-2.3.2}/openbb_charting/query_params.py +0 -0
  40. {openbb_charting-2.3.0 → openbb_charting-2.3.2}/openbb_charting/styles/__init__.py +0 -0
  41. {openbb_charting-2.3.0 → openbb_charting-2.3.2}/openbb_charting/styles/colors.py +0 -0
  42. {openbb_charting-2.3.0 → openbb_charting-2.3.2}/openbb_charting/styles/default/dark.pltstyle.json +0 -0
  43. {openbb_charting-2.3.0 → openbb_charting-2.3.2}/openbb_charting/styles/default/light.pltstyle.json +0 -0
  44. {openbb_charting-2.3.0 → openbb_charting-2.3.2}/openbb_charting/styles/default/tables.pltstyle.json +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: openbb-charting
3
- Version: 2.3.0
3
+ Version: 2.3.2
4
4
  Summary: Charting extension for OpenBB
5
5
  License: AGPL-3.0-only
6
6
  Author: OpenBB Team
@@ -13,14 +13,11 @@ Classifier: Programming Language :: Python :: 3.10
13
13
  Classifier: Programming Language :: Python :: 3.11
14
14
  Classifier: Programming Language :: Python :: 3.12
15
15
  Provides-Extra: pywry
16
- Requires-Dist: nbformat (>=5.9.2,<6.0.0)
17
- Requires-Dist: numpy (>=1,<2)
16
+ Requires-Dist: nbformat (>=5.10.0,<6.0.0)
18
17
  Requires-Dist: openbb-core (>=1.4.0,<2.0.0)
19
- Requires-Dist: pandas-ta (>=0.3.14b,<0.4.0)
20
- Requires-Dist: plotly (>=5.17.0,<6.0.0)
21
- Requires-Dist: pywry (>=0.6.1,<0.7.0) ; extra == "pywry"
22
- Requires-Dist: scipy (>=1.10.0,<2.0.0)
23
- Requires-Dist: statsmodels (>=0.14.0,<0.15.0)
18
+ Requires-Dist: pandas-ta-openbb (>=0.4.20,<0.5.0)
19
+ Requires-Dist: plotly (>=5.24.1,<6.0.0)
20
+ Requires-Dist: pywry (>=0.6.2,<0.7.0) ; extra == "pywry"
24
21
  Description-Content-Type: text/markdown
25
22
 
26
23
  # OpenBB Charting extension
@@ -1,5 +1,7 @@
1
1
  """Helper functions for charting."""
2
2
 
3
+ # pylint: disable=R0917
4
+
3
5
  from typing import TYPE_CHECKING, Callable, Dict, List, Type
4
6
 
5
7
  if TYPE_CHECKING:
@@ -1,5 +1,7 @@
1
1
  """Relative Rotation Chart Helpers."""
2
2
 
3
+ # pylint: disable=R0917
4
+
3
5
  from datetime import date as dateType
4
6
  from typing import TYPE_CHECKING, Literal, Optional
5
7
  from warnings import warn
@@ -109,9 +111,9 @@ def create_rrg_with_tails(
109
111
  symbols = ratios_data.columns.to_list()
110
112
 
111
113
  tail_dict = {"week": "W", "month": "M"}
112
-
113
114
  ratios_data.index = to_datetime(ratios_data.index)
114
115
  momentum_data.index = to_datetime(momentum_data.index)
116
+
115
117
  if tail_interval != "day":
116
118
  ratios_data = ratios_data.resample(tail_dict[tail_interval]).last()
117
119
  momentum_data = momentum_data.resample(tail_dict[tail_interval]).last()
@@ -136,8 +138,8 @@ def create_rrg_with_tails(
136
138
  name = symbol.upper().replace("^", "").replace(":US", "")
137
139
  # Create a trace for the line
138
140
  line_trace = go.Scattergl(
139
- x=x_data[:-1], # All but the last data point
140
- y=y_data[:-1], # All but the last data point
141
+ x=x_data.iloc[:-1], # All but the last data point
142
+ y=y_data.iloc[:-1], # All but the last data point
141
143
  mode="lines+markers",
142
144
  line=dict(
143
145
  color=color_sequence[i % len(color_sequence)], width=2, dash="dash"