Samuel.Yan
Samuel.Yan
# 关于0.5版本系列 ## 概述 django-echarts v0.5.0将会是新版本系列的第一个正式版本,与原有的0.3.x完全不兼容。 - pypi主页:https://pypi.org/project/django-echarts/ - 文档:https://django-echarts.readthedocs.io/ - 更新日志: https://django-echarts.readthedocs.io/changelog/ ## 使用开发版本 开发版本位于 dev分支,可以通过下面方式安装: ``` git clone https://github.com/kinegratii/django-echarts.git cd django-echarts git checkout -b dev python setup.py install...
**Is your feature request related to a problem? Please describe.** No. **Describe the solution you'd like** As we known, the heading of route sign show the destination of a platform.This...
## 1 运行环境支持 **django-echarts v0.6.0默认使用 pyecharts 2.x 作为底层渲染库,其最大的变化是 echarts 版本由 4.8 升级至 5.4。** django-echarts 依赖库更新如下: ``` pyecharts 1.9 -> 2.0 typing_extensions 4.0 -> 4.5 borax 3.5 -> 4.0 ``` ##...
图表构建函数支持自定义参数,可以根据不同的输入值,加载不同的数据,从而形成多个图表。 以之前的时间轴图表为例子,每次只显示一个年份的数据图表。 ```python @site_obj.register_chart(title='{year}年福建省家庭户类型组成') def yearly_family(year: int): family_types = [ '一人户', '二人户', '三人户', '四人户', '五人户', '六人户', '七人户', '八人户', '九人户', '十人及其以上' ] data = [ [1982, 7.7, 8.2, 12.2, 17.1, 18.4,...
**现状**: 目前 `SolarFestival` 和 `LunarFestival` 的 `freq` 属性类型为 `int`,通过 `FreqConst` 定义常量值。 ```python last_day_of_month = SolarFestival(freq=FreqConst.MONTHLY, day=-1) # FreqConst.MONTHLY = 1 ``` **改进1** :允许 `freq` 传入字符串 `monthly` 或 `yearly` ,这样不必导入 `FreqConst`...
链接:https://peps.python.org/pep-0585/ 从 python3.9开始,python类型注解支持使用内置的类型标识参数类型,而不必从 `typing` 导入。 比如在python3.9之前 ```python from typing import List def foo(a:List[int]): pass ``` python3.9之后可以这样使用 ```python def foo(a:list[int]): pass ``` 具体类型可查看 PEP 585。
Borax 4.1.0 是一个重大更新的版本,主要包括: - **python版本最低要求为3.9** ,不再支持python3.7和3.8 - 使用 *pyproject.toml* 文件作为项目构建配置文件 - 更新开发依赖包至最新版本,如flake8、nose2、pylint等 - 新增基于 tkinter 的日历应用程序 预计发布时间:2024年1月