一级标题 `超链接`_¶
二级标题:= - ` : ' " ~ ^ _ * + # < >¶
dd
## 2022.06.21 -- Opulent Opal
Fix docutils <= 0.17.x compatibility.
Bump to the latest Node.js LTS.
待处理
Use this directive like, for example, note.
It will only show up in the output if todo_include_todos is True.
Added in version 1.3.2: This directive supports an class option that determines the class attribute for HTML output. If not given, the class defaults to admonition-todo.
这是一个嵌入的子rst页面。
pass为了简单使用,封装 pyechart的用法, 专门用于处理k线图。
pyechart所有配置手册: https://pyecharts.org/#/zh-cn/global_options pyechart代码demo: https://gallery.pyecharts.org/#/Bar/bar_different_series_gap
- class earnmi.chart.echarts.Candles(_name: str | None = None, _bars: List[BarData] | None = None)[源代码]¶
k线图
- class earnmi.chart.echarts.ChartData(bars: List[BarData] | None = None, x_values: List[str] | None = None, close_list: List[float] | None = None, candle_list: List[float] | None = None, max_value: float | None = None, min_value: float | None = None, precision: int | None = None, x_mark_lines: List[float] | None = None, name: str = '价格')[源代码]¶
基本的行情数据
- class earnmi.chart.echarts.Dot(name: str, values: List[float], color: str | None = None, width: float = 1)[源代码]¶
点的集合
- class earnmi.chart.echarts.Echart(bars: List[BarData], opts: EchartOpts | None = None, name: str | None = None)[源代码]¶
example:
from earnmi.chart import echarts as CHART echart = CHART.Echart(bars=bars) echart.opts.mode = CHART.Mode.History echart.opts.k_style = CHART.K_style.Line echart.bottom().add_volume_view() output.put_html(echart.build().render_notebook())
- class earnmi.chart.echarts.EchartOpts(mode: earnmi.chart.echarts.Mode = <Mode.History: 'history'>, k_style: earnmi.chart.echarts.K_style = <K_style.Line: 'line'>, screen_bar_size: int = 150, screen_scroll_range_start: int = None)[源代码]¶
- class earnmi.chart.echarts.Line(name: str, values: List[float], color: str = None, width: float = 1)[源代码]¶
- class earnmi.chart.echarts.Lines(title: str = '', x_axis_show: bool = True, x_axis_on_zero: bool = True, max_value: float | None = None, min_value: float | None = None)[源代码]¶
线的集合。