¶
Beautiful, Interactive Charts with Python
A grammar of graphics approach powered by Apache ECharts
What is GoCharts?¶
GoCharts is a Python visualization library that combines the elegance of the grammar of graphics (like ggplot2/plotnine) with the power and interactivity of Apache ECharts. Create stunning, interactive visualizations with an intuitive, declarative syntax.
Key Features¶
Grammar of Graphics - Declarative syntax inspired by ggplot2
Interactive by Default - Built on Apache ECharts for rich interactivity
Beautiful Themes - Professional-looking charts out of the box
Comprehensive Chart Types - Line, bar, scatter, heatmap, and more
Easy to Learn - Pythonic API that feels natural
Responsive - Charts that work beautifully on any screen size
Quick Example¶
import gocharts as go
import pandas as pd
# Sample data
df = pd.DataFrame({
'x': range(10),
'y': [2, 4, 3, 5, 7, 6, 8, 9, 8, 10]
})
# Create an interactive line chart
chart = (
go.Chart(df)
.map(x='x', y='y')
.geom('line')
)
chart.display()
Installation¶
Why GoCharts?¶
Familiar Syntax, Modern Output¶
If you love the grammar of graphics approach but need interactive, web-ready visualizations, GoCharts is for you.
Powered by Apache ECharts¶
Built on one of the most powerful JavaScript visualization libraries, giving you:
- Rich Interactions - Zoom, pan, tooltips, data selection
- Performance - Handle large datasets smoothly
- Battle-Tested - Used by thousands of companies worldwide
- Customizable - Full control over appearance and behavior
Get Started¶
API Overview¶
| Class | Description |
|---|---|
Chart |
Main class for creating and configuring charts |
Theme |
Fluent API for chart theme configuration |
Community & Support¶
- GitHub Issues: Report bugs or request features
- Discussions: Ask questions and share your work
License¶
GoCharts is open source and available under the GNU GENERAL PUBLIC LICENSE.