Skip to content

Comments

add charton plotting#6

Open
wangjiawen2013 wants to merge 1 commit intoEricFecteau:mainfrom
wangjiawen2013:main
Open

add charton plotting#6
wangjiawen2013 wants to merge 1 commit intoEricFecteau:mainfrom
wangjiawen2013:main

Conversation

@wangjiawen2013
Copy link

@wangjiawen2013 wangjiawen2013 commented Feb 8, 2026

Hi,

I have made the modifications based on your suggestions, but I encountered several issues. Some of the tests in the book appear to be insufficient; for instance, the code examples do not take WASM compatibility into account. Many examples from the book might fail to run in a WASM environment.

Specifically, the df-interchange = { version = "0.3", features = ["polars_0_50", "polars_0_51"] } dependency in Cargo.toml likely won't compile under WASM. Furthermore, the Polars parquet feature has known issues in WASM environments (for details, please refer to Polars Issue #25857).

Additionally, the plotting data used in the book is plotlars-specific. It is only suitable for a few specific types of charts and contains a large number of repetitive integers, making it poor input data for Charton. Therefore, I decided to use Charton's built-in data for the user demonstrations and avoid compatibility issues among different polars versions (In fact, Charton uses polars-io parquet series, not polars parquet feature to bridge the dataframe among these versions, which can be found in charton's tutorial). This ensures users realize that Charton is a powerful, viable alternative to Plotlars for data visualization.

I have submitted a new Pull Request. After weighing all factors, I believe this Pull Request represents the most straightforward approach. Otherwise, both of us would need to make significant revisions to the book's content, which wouldn't be cost-effective for either of us. I hope you will take these factors into consideration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant