flet-charts 0.70.0.dev6365__py3-none-any.whl → 0.70.0.dev6412__py3-none-any.whl

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.

Potentially problematic release.


This version of flet-charts might be problematic. Click here for more details.

flet_charts/bar_chart.py CHANGED
@@ -175,15 +175,15 @@ class BarChart(ft.LayoutControl):
175
175
 
176
176
  group_spacing: ft.Number = 16.0
177
177
  """
178
- A amount of space between bar [`groups`][..].
178
+ An amount of space between bar [`groups`][(c).].
179
179
  """
180
180
 
181
181
  group_alignment: ft.MainAxisAlignment = ft.MainAxisAlignment.SPACE_EVENLY
182
182
  """
183
- The alignment of the bar [`groups`][..] within this chart.
183
+ The alignment of the bar [`groups`][(c).] within this chart.
184
184
 
185
185
  If set to [`MainAxisAlignment.CENTER`][flet.MainAxisAlignment.CENTER],
186
- the space between the `groups` can be specified using [`group_spacing`][..].
186
+ the space between the `groups` can be specified using [`group_spacing`][(c).].
187
187
  """
188
188
 
189
189
  animation: ft.AnimationValue = field(
flet_charts/chart_axis.py CHANGED
@@ -19,7 +19,7 @@ class ChartAxisLabel(ft.BaseControl):
19
19
 
20
20
  label: Optional[ft.StrOrControl] = None
21
21
  """
22
- The label to display for the specified [`value`][..].
22
+ The label to display for the specified [`value`][(c).].
23
23
  """
24
24
 
25
25
 
@@ -41,7 +41,7 @@ class ChartAxis(ft.BaseControl):
41
41
 
42
42
  show_labels: bool = True
43
43
  """
44
- Whether to display the [`labels`][..] along the axis.
44
+ Whether to display the [`labels`][(c).] along the axis.
45
45
  If `labels` is empty then automatic labels are displayed.
46
46
  """
47
47
 
@@ -61,7 +61,7 @@ class ChartAxis(ft.BaseControl):
61
61
 
62
62
  label_size: ft.Number = 22
63
63
  """
64
- The maximum space for each label in [`labels`][..].
64
+ The maximum space for each label in [`labels`][(c).].
65
65
 
66
66
  Each label will stretch to fit this space.
67
67
  """
@@ -48,7 +48,7 @@ class LineChartData(ft.BaseControl):
48
48
 
49
49
  prevent_curve_over_shooting_threshold: ft.Number = 10.0
50
50
  """
51
- Threshold for [`prevent_curve_over_shooting`][..] algorithm.
51
+ Threshold for [`prevent_curve_over_shooting`][(c).] algorithm.
52
52
  """
53
53
 
54
54
  dash_pattern: Optional[list[int]] = None
@@ -131,7 +131,7 @@ class LineChartData(ft.BaseControl):
131
131
  curve_smoothness: ft.Number = 0.35
132
132
  """
133
133
  Defines the smoothness of a curve line,
134
- when [`curved`][..] is set to `True`.
134
+ when [`curved`][(c).] is set to `True`.
135
135
  """
136
136
 
137
137
  rounded_stroke_join: bool = False
@@ -99,7 +99,7 @@ class LineChartDataPoint(ft.BaseControl):
99
99
 
100
100
  show_tooltip: bool = True
101
101
  """
102
- Whether the [`tooltip`][..] should be shown when this data point is hovered over.
102
+ Whether the [`tooltip`][(c).] should be shown when this data point is hovered over.
103
103
  """
104
104
 
105
105
  def before_update(self):
@@ -10,10 +10,6 @@ __all__ = ["PieChartSection"]
10
10
  class PieChartSection(ft.BaseControl):
11
11
  """
12
12
  Configures a [PieChart][(p).] section.
13
-
14
- Raises:
15
- AssertionError: If [`title_position`][(c).] or
16
- [`badge_position`][(c).] is not between `0.0` and `1.0` inclusive.
17
13
  """
18
14
 
19
15
  value: ft.Number
@@ -51,11 +47,13 @@ class PieChartSection(ft.BaseControl):
51
47
  """
52
48
  The position/offset of the title relative to the section's center.
53
49
 
50
+ - `0.0`: near the center
51
+ - `1.0`: near the outside of the chart
52
+
54
53
  By default the title is drawn in the middle of the section.
55
54
 
56
- Note:
57
- Must be between `0.0` (near the center)
58
- and `1.0`(near the outside of the chart) inclusive.
55
+ Raises:
56
+ ValueError: If it is not between `0.0` and `1.0` inclusive.
59
57
  """
60
58
 
61
59
  badge: Optional[ft.Control] = None
@@ -67,11 +65,13 @@ class PieChartSection(ft.BaseControl):
67
65
  """
68
66
  The position/offset of the badge relative to the section's center.
69
67
 
68
+ - `0.0`: near the center
69
+ - `1.0`: near the outside of the chart
70
+
70
71
  By default the badge is drawn in the middle of the section.
71
72
 
72
- Note:
73
- Must be between `0.0` (near the center)
74
- and `1.0`(near the outside of the chart) inclusive.
73
+ Raises:
74
+ ValueError: If it is not between `0.0` and `1.0` inclusive.
75
75
  """
76
76
 
77
77
  gradient: Optional[ft.Gradient] = None
@@ -81,11 +81,13 @@ class PieChartSection(ft.BaseControl):
81
81
 
82
82
  def before_update(self):
83
83
  super().before_update()
84
- assert self.title_position is None or (0.0 <= self.title_position <= 1.0), (
85
- f"title_position must be between 0.0 and 1.0 inclusive, "
86
- f"got {self.title_position}"
87
- )
88
- assert self.badge_position is None or (0.0 <= self.badge_position <= 1.0), (
89
- f"badge_position must be between 0.0 and 1.0 inclusive, "
90
- f"got {self.badge_position}"
91
- )
84
+ if self.title_position is not None and not (0.0 <= self.title_position <= 1.0):
85
+ raise ValueError(
86
+ "title_position must be between 0.0 and 1.0 inclusive, "
87
+ f"got {self.title_position}"
88
+ )
89
+ if self.badge_position is not None and not (0.0 <= self.badge_position <= 1.0):
90
+ raise ValueError(
91
+ "badge_position must be between 0.0 and 1.0 inclusive, "
92
+ f"got {self.badge_position}"
93
+ )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flet-charts
3
- Version: 0.70.0.dev6365
3
+ Version: 0.70.0.dev6412
4
4
  Summary: Interactive chart controls for Flet apps.
5
5
  Author-email: Flet contributors <hello@flet.dev>
6
6
  License-Expression: Apache-2.0
@@ -11,7 +11,7 @@ Project-URL: Issues, https://github.com/flet-dev/flet/issues
11
11
  Requires-Python: >=3.10
12
12
  Description-Content-Type: text/markdown
13
13
  License-File: LICENSE
14
- Requires-Dist: flet==0.70.0.dev6365
14
+ Requires-Dist: flet==0.70.0.dev6412
15
15
  Dynamic: license-file
16
16
 
17
17
  # flet-charts
@@ -1,18 +1,18 @@
1
1
  flet_charts/__init__.py,sha256=9dO2t_hyMgmUsuFberHjdKd0_RDAK856w4lwmWZab4I,3136
2
- flet_charts/bar_chart.py,sha256=d3Sir3IfFKyJV2qfopwWwgznPheUgfRjsHkXcJVPIDQ,7643
2
+ flet_charts/bar_chart.py,sha256=0HQq_FDNYq4X_vWUmEALUqpidmJZo5kxIEWa4QGVQb0,7650
3
3
  flet_charts/bar_chart_group.py,sha256=g8JGjaxQMDFGozE1BTQXBaiCynFYTTOVlB1kTzGvB8I,701
4
4
  flet_charts/bar_chart_rod.py,sha256=hBMPwprgJWZhryKTFHaOwbHIiKq2uQzPyCKG7-mS8go,3574
5
5
  flet_charts/bar_chart_rod_stack_item.py,sha256=XPLRpHdScmdde2UAau47OLSSL-AuQUbLpT1g7pNS9kI,623
6
6
  flet_charts/candlestick_chart.py,sha256=j-mziQRijZKvrzk1dhsgyM7khoYQCwQ8XAbCw8rRUEM,7588
7
7
  flet_charts/candlestick_chart_spot.py,sha256=ti4R_IgQb2zyU64aeHx3s2uADI-INl0_J7sGohZaIPY,2749
8
- flet_charts/chart_axis.py,sha256=jKX1bxQqxW3piNmyJUQShGATwnI1sKjXtKP425iDRhg,1869
8
+ flet_charts/chart_axis.py,sha256=VHA9XjmFkpKoq03U3N6xmzzrAtNldBhCegv41JpBcYo,1875
9
9
  flet_charts/line_chart.py,sha256=A7Y0LqHFw-iLiFtATZLIGXOpvvueiGFiSdf3fLfHtIA,7979
10
- flet_charts/line_chart_data.py,sha256=KDE8GZ-Q08usKoHjMCkwG7wl-twcXvq6hBnM2IrtWv0,4161
11
- flet_charts/line_chart_data_point.py,sha256=4GH2MU81IbIisapxupQRoiOd768pj4ixp4ml8AdIyKA,3252
10
+ flet_charts/line_chart_data.py,sha256=fjMDsT4cx-XNQUcG_r2CBov5eOV6IgtNZ7defqFyJxM,4165
11
+ flet_charts/line_chart_data_point.py,sha256=Qn9Wk72blqg45c31vQzTeH1_Q-Eq1jIPYJGdXg6Dl0o,3254
12
12
  flet_charts/matplotlib_chart.py,sha256=KR3YtNz8D8OXYtNZs_xUQEkCWl3o77oFe7dnVaePog0,14396
13
13
  flet_charts/matplotlib_chart_with_toolbar.py,sha256=6djycLXdKRyOjpUOSuu9iFYGwUVf0SowOfbJ-rooMa4,3955
14
14
  flet_charts/pie_chart.py,sha256=boJ01MiDN1lWYFQIW497P5MNdih53ZdWcB7ce734dvQ,1963
15
- flet_charts/pie_chart_section.py,sha256=KdUF91BYAhY63U3NxMuY9Go56Ss0w-dmT8hLdxgP-tQ,2482
15
+ flet_charts/pie_chart_section.py,sha256=i-EkYyL7HJgDCctgjyi0caROqLrzCjoeMNaPvhlLems,2493
16
16
  flet_charts/plotly_chart.py,sha256=qbbKh1W60XgpE702f9o2TsrE1iLL-oSJ_xTkTemplyU,2028
17
17
  flet_charts/radar_chart.py,sha256=FtTNRVFFuvSk5aO2vbd3jnGHTVbCykbvIh2K6yHHkTg,5568
18
18
  flet_charts/radar_data_set.py,sha256=SL-cHto0wJIgC8-x8xMIczST_ZOmho7yDAQd7kdg400,1479
@@ -20,11 +20,11 @@ flet_charts/scatter_chart.py,sha256=q_YY0AZwI_xXQye53HWEmedjTI33kSfITf-6xsC4XXQ,
20
20
  flet_charts/scatter_chart_spot.py,sha256=4iqndp_G1eNiH2IUtW7PCIc_XPxEDm04fDqqPwQxOiY,3698
21
21
  flet_charts/types.py,sha256=0VNeobnKFjM5F164yqH81qGJVbtewhJEGAygMWy7SCs,11121
22
22
  flet_charts/matplotlib_backends/backend_flet_agg.py,sha256=1imjpVpAexu02v96_jWlTPHhXdHMztPllTvHjnxDT78,483
23
- flet_charts-0.70.0.dev6365.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
23
+ flet_charts-0.70.0.dev6412.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
24
24
  flutter/flet_charts/CHANGELOG.md,sha256=tLc4Pl32-dWgzs4OPKaUerLsnLo1u3yVWKU9qjyazf0,41
25
25
  flutter/flet_charts/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
26
26
  flutter/flet_charts/analysis_options.yaml,sha256=x4UkoVEHV7h6exoZk7csc1_nfwEhkWpL7L8itHPuwLY,155
27
- flutter/flet_charts/pubspec.lock,sha256=X8LUJwq2bK2mVLNG4wM-GlPjfJ867cNB6AiMhvUlgDI,23432
27
+ flutter/flet_charts/pubspec.lock,sha256=3kYILH7jtA3IhFnz06LWODOPjGxgLZr-HkrLV0QUE5c,23430
28
28
  flutter/flet_charts/pubspec.yaml,sha256=N5gRkctY8H17u1ZLU8i0IkUnLC4GkodZ8Bdw5hnG6xM,419
29
29
  flutter/flet_charts/lib/flet_charts.dart,sha256=66hr4Shizat1MIyu957NiJI_xXYOSeOJbFI489qw7ok,70
30
30
  flutter/flet_charts/lib/src/bar_chart.dart,sha256=6K_WPR4NzI_C9dor0eblESZi5hdf6PpKGD6xTml9KDI,3683
@@ -41,7 +41,7 @@ flutter/flet_charts/lib/src/utils/line_chart.dart,sha256=s_9iokaUFHNipu_YVw6OSJc
41
41
  flutter/flet_charts/lib/src/utils/pie_chart.dart,sha256=GbxCrhx_SXtJFH_94raOd_m_u7r37NRc6IExi-Qcumw,1850
42
42
  flutter/flet_charts/lib/src/utils/radar_chart.dart,sha256=AK4aVdE0rRqq7R1q7scPa_mi0XXoV-GpNYXjCAi038E,2833
43
43
  flutter/flet_charts/lib/src/utils/scatter_chart.dart,sha256=KqJxvpl8jIZkQw132Ab4x4nhHTyiUw8M2NExgRCXf1k,3323
44
- flet_charts-0.70.0.dev6365.dist-info/METADATA,sha256=fS7dNYqDisgXXwY3tMtR7ZYZgf8d1EzZIZKl7h3P_R8,2443
45
- flet_charts-0.70.0.dev6365.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
46
- flet_charts-0.70.0.dev6365.dist-info/top_level.txt,sha256=CVHmtljbPFTyfCiru5bxX1vvWL8L6rtUbV9bqqkSxFE,20
47
- flet_charts-0.70.0.dev6365.dist-info/RECORD,,
44
+ flet_charts-0.70.0.dev6412.dist-info/METADATA,sha256=LVCHX1UypE0AKrQI0D5dsx-DjoDLy70_NgoJwUao-Ng,2443
45
+ flet_charts-0.70.0.dev6412.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
46
+ flet_charts-0.70.0.dev6412.dist-info/top_level.txt,sha256=CVHmtljbPFTyfCiru5bxX1vvWL8L6rtUbV9bqqkSxFE,20
47
+ flet_charts-0.70.0.dev6412.dist-info/RECORD,,
@@ -77,10 +77,10 @@ packages:
77
77
  dependency: transitive
78
78
  description:
79
79
  name: device_info_plus
80
- sha256: "49413c8ca514dea7633e8def233b25efdf83ec8522955cc2c0e3ad802927e7c6"
80
+ sha256: dd0e8e02186b2196c7848c9d394a5fd6e5b57a43a546082c5820b1ec72317e33
81
81
  url: "https://pub.dev"
82
82
  source: hosted
83
- version: "12.1.0"
83
+ version: "12.2.0"
84
84
  device_info_plus_platform_interface:
85
85
  dependency: transitive
86
86
  description: