Skip to content

0.4.9.3

Compare
Choose a tag to compare
@longxiaofei longxiaofei released this 25 Jul 08:19
· 36 commits to main since this release

What's Changed

Component api

We're excited to announce an experimental new feature in pygwalker:

The component chaining API that enables intuitive, step-by-step chart construction. This feature currently supports rendering to static HTML.

Key Points:

  • Introduces a chainable API for creating visualizations
  • Allows for more intuitive and readable code
  • Currently an experimental feature
  • Limited to static HTML output at this time

Example usage:

import pygwalker as pyg
import pandas as pd

df = pd.read_csv("xxx")

(
pyg.component(df)
    .rect()
    .encode(x='bin("feeling_temp", 6)', y='bin("temperature", 6)', color="MEAN(humidity)")
    .layout(height=400, width=460)
)

For more examples, please refer to the pygwalker/examples directory in our repository.

Upcoming Improvements:

  1. Optimize the size of pure chart HTML output
  2. Implement two-way communication for Jupyter and Streamlit environments

We welcome feedback from our community as we continue to develop and refine this feature.

Please note that as an experimental feature, syntax and functionality may change in future releases

Full Changelog: 0.4.9...0.4.9.3