vnstock-ezchart
raw JSON → 0.0.3 verified Sat May 09 auth: no python
vnstock-ezchart is a high-level Python charting library built on Matplotlib and Seaborn, offering a simplified API for routine data visualization. Version 0.0.3 requires Python >=3.10 and is actively maintained on GitHub by vnstock-hq.
pip install vnstock-ezchart Common errors
error ImportError: No module named 'vnstock_ezchart' ↓
cause Package not installed or incorrect environment.
fix
Run: pip install vnstock-ezchart
error AttributeError: 'DataFrame' object has no attribute 'bar' ↓
cause Calling chart method directly on DataFrame instead of EzChart instance.
fix
Instantiate EzChart first: chart = EzChart(df, x='x', y='y'); chart.bar()
error ValueError: x and y must be specified ↓
cause Missing required keyword arguments 'x' and 'y' when creating EzChart.
fix
Provide column names: EzChart(df, x='col1', y='col2')
Warnings
gotcha EzChart expects a pandas DataFrame; passing other iterables may raise AttributeError. ↓
fix Convert data to pandas DataFrame before passing to EzChart.
gotcha The chart.show() method blocks execution in non-interactive environments; use chart.savefig() instead. ↓
fix Use chart.savefig('output.png') to save the plot without blocking.
deprecated The old import pattern 'import ezchart' was used in pre-release versions; now it's 'vnstock_ezchart'. ↓
fix Update imports to: from vnstock_ezchart import EzChart
Imports
- EzChart wrong
from ezchart import EzChartcorrectfrom vnstock_ezchart import EzChart - chart wrong
import ezchart as chartcorrectfrom vnstock_ezchart import chart
Quickstart
import pandas as pd
from vnstock_ezchart import EzChart
df = pd.DataFrame({
'x': ['A', 'B', 'C', 'D'],
'y': [10, 20, 15, 25]
})
chart = EzChart(df, x='x', y='y')
chart.bar()
chart.show()